Deque.peekat

From OpenEUO
Revision as of 17:38, 18 December 2010 by Ximan (Talk | contribs) (Created page with "== Calling Pattern == Call local d = sl.deque() -- later local r = d.peekat(a) Args a is a number Results r is any type == Description == Calling peekat returns the value ...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Calling Pattern

Call

local d = sl.deque()
-- later
local r = d.peekat(a)

Args

a is a number

Results

r is any type

Description

Calling peekat returns the value at position a from the front of the queue, without actually removing it. If the queue is empty, peekat returns nil.

Upon Error

Errors are reported and handled according to the operant error redirection mode.

See Also