modding:function:count
This is an old revision of the document!
count
Syntax | (count list) → number of items |
---|---|
Arguments | list: A list elements you want to count. |
Returns | integer: The number of elements in the list. |
Category | list |
Description | Counts how many elements are in the list and returns that number. It doesn't care what the elements are they can even be other lists. |
Example
(count '(1 1 1 1))
This will return the number four.
(count '((1 a b) Nil (la Nil)))
This will return the number three (even if two are lists and one is Nil) Return to Functions list
modding/function/count.1419655255.txt.gz · Last modified: 2015/08/26 18:46 (external edit)