Deque.peekback

From OpenEUO
Jump to: navigation, search

Calling Pattern

Call

local d = sl.deque()
-- later
local r = d.peekback()

Results

r is any type

Description

Calling peekback returns the value at the back of the queue, without actually removing it. If the queue is empty, peekback returns nil. Deque.back is a synonym for peekback.

Upon Error

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

See Also