You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The function returns a NUMBER LIST in l whose cardinality (i.e., the number of times it appears in list l) satisfies the comparison cardinality operator n.

Available comparison operators: =, !=, <, <=, > and >=.

Syntax
filterByCardinality(number list l, comparison operator operator, number n) #Output: Number list
Examples
Parser expressionDescription
filterByCardinality([1, 1, 2, 3, 4, 4, 4, 5], >, 1) 

The function returns a NUMBER LIST: [1, 4]

Output

The function returns a NUMBER LIST