Difference between revisions of "Deque.popfront"

From OpenEUO
Jump to: navigation, search
(Created page with "== Calling Pattern == Call local d = sl.deque() -- later local r = d.popfront() Results r is any type == Description == Calling popfront returns the value at the front of t...")
 
(No difference)

Latest revision as of 17:44, 18 December 2010

Calling Pattern

Call

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

Results

r is any type

Description

Calling popfront returns the value at the front of the queue and removes it. If the queue is empty, popfront returns nil. Deque.pop is a synonym for popfront.

Upon Error

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

See Also