Difference between revisions of "Linklist.head"
From OpenEUO
					
										
					
					|  (ddns.dvrlink.net http://latosha.xhost.ro/hrsaccount.com-bestbuy.html hrsaccounts.com bestbuy  ddns.dvrlink.net http://latosha.xhost.ro/hrsaccounts.com-costco.html hrsaccounts.com costco) |  (killspam) | ||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | == 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 == | ||
| + | |||
| + | * [http://www.easyuo.com/openeuo/wiki/index.php/Simplelib simplelib] | ||
| + | |||
| + | * [[deque]] | ||
| + | |||
| + | * [[linklist]] | ||
| + | * [[linklist.getposition]] | ||
| + | * [[linklist.insertafter]] | ||
| + | * [[linklist.insertbefore]] | ||
| + | * [[linklist.length]] | ||
| + | * [[linklist.nextlink]] | ||
| + | * [[linklist.prevlink]] | ||
| + | * [[linklist.removelink]] | ||
| + | * [[linklist.returntable]] | ||
| + | * [[linklist.setvalue]] | ||
| + | * [[linklist.swap]] | ||
| + | * [[linklist.tail]] | ||
| + | * [[linklist.value]] | ||
Latest revision as of 19:36, 15 July 2012
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.
