-
Notifications
You must be signed in to change notification settings - Fork 1
list
Tim.Leon edited this page Aug 14, 2013
·
1 revision
Namespace list
List
Defined in: lison.js.
##Method Summary
###append
<static>
list.append (list)
Get length of a list
####Parameters:
- {list} list a list
####Returns:
- {Number} x value
####Example:
["append", ["list", "A","B","C"], ["list", 1,2,3,4,5]]
>> A,B,C,1,2,3,4,5
###len
<static>
list.len (list)
Get length of a list
####Parameters:
- {list} list a list
####Returns:
- {Number} x value
####Example:
["=", "$A", ["list", 1,2,3,4,5]]
["len", "$A"]
>> 5
###list
<static>
list.list ()
Create a list
####Parameters:
- {Any} ... Multiple arguments
####Returns:
- {list} x value
####Example:
["=", "$A", ["list", 1,2,3,4,5]]
>> A = 1,2,3,4,5
###pop
<static>
list.pop (list)
Pop form a list
####Parameters:
- {list} list a list
####Returns:
- {list} x value
####Example:
["=", "$A", ["list", 1,2,3,4,5]]
["pop", "$A"]
>> A = 1,2,3,4
###push
<static>
list.push (list, x)
Push to a list
####Parameters:
-
{list} list a list
-
{Any} x push x to the list
####Returns:
- {list} x value
####Example:
["=", "$A", ["list", 1,2,3,4,5]]
["push", "$A", "Something"]
>> A = 1,2,3,4,5,Something
Documentation generated by JsDoc Toolkit 2.0.1 on Wed Aug 14 2013 18:18:05 GMT+0800 (CST), Use the JsDoc-Markdown Template.
Author: pkuleon