User Tools

Site Tools


modding:function:count

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

modding:function:count [2014/12/27 04:40] – external edit 127.0.0.1modding:function:count [2015/08/26 18:46] (current) – updated count function digdug
Line 16: Line 16:
  
 <code lisp>(count '((1 a b) Nil (la Nil)))</code>This will return the number three (even if two are lists and one is Nil) <code lisp>(count '((1 a b) Nil (la Nil)))</code>This will return the number three (even if two are lists and one is Nil)
 +
 +<code lisp>(count "Hello")</code>This will return the number 5. Count works on strings too, and returns the number of chars in the string.
 Return to [[:Functions]] list Return to [[:Functions]] list
  
modding/function/count.1419655255.txt.gz · Last modified: 2015/08/26 18:46 (external edit)