PING
0.9
Statistical data handling and processing in production environment
|
Count the number of occurences of an element in a (blank separated) list.
list
: a list of blank separated strings;item
: a string defining the pattern to count for the occurrence of appearance in input list
;casense
: (option) boolean flag (yes/no
) set to perform cases sensitive search/matching; default: casense=no
, i.e. the upper-case pattern item
will be searched/matched;sep
: (option) character/string separator in input list
; default: %quote( )
, i.e. sep
is blank.count
: output count number, i.e. the number of times the element item
appears in the list; note that when the element item
is not found in the input list, it returns count=0
as expected.
Let us consider a simple example:
which returns count=3
.
Run macro %_example_list_count
for more examples.