previous  next
Count
Syntax
Count(L:LIST,E:OBJECT):INT
Summary
count the objects in a list
Description
This function counts the number of occurrences of the object E in the
list L.

Example

L := [1,2,3,2,[2,3]];
Count(L,2);
2
-------------------------------
Count(L,[2,3]);
1
-------------------------------
Count(L,"a");
0
-------------------------------
See also: