Linklist.head

From OpenEUO
Revision as of 18:36, 15 July 2012 by Ximan (Talk | contribs) (killspam)

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

Calling Pattern

Call

local k = sl.linklist()
-- later
local n = k.head()

Results

n is a number

Description

Calling head returns the psuedo-index of the head of the list. If the list is empty, then head returns 0.

See Also