|
|
|
count thing
outputs the number of characters in the input, if the input is a word. outputs the number of members in the input, if it is a list, array or table (For an array, this may or may not be the index of the last member, depending on the array's origin.). For a table, count outputs not the table size, but the number of items set.
Examples:
count "Hallo ;5 ;-)
count 1234 ;4 ;-)
count [Hallo World] ;2 ;-)
count {a b c} ;3 ;-)
count [[][]] ;2 ;-)
t=table 3
count t ;0 ;-)
t'a=1234
count t ;1 ;-)
t'b=567
count t ;2 ;-)
t'c=890
count t ;3 ;-)
removeItem "b t
count t ;2 ;-)
t ;[a 1234][c 890] ;-)
|
|
|
|