Difference between revisions of "Linklist.length"

From OpenEUO
Jump to: navigation, search
(Created page with "== Calling Pattern == Call local k = sl.linklist() -- later local n = k.length() Results n is a number == Description == Calling length returns the length of the underlyin...")
 
(No difference)

Latest revision as of 13:45, 18 December 2010

Calling Pattern

Call

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

Results

n is a number

Description

Calling length returns the length of the underlying linked list. If the list is empty, then length returns 0.

See Also