Previous Up Next

6.40.21  Number of elements equal to a given value: count_eq

The count_eq command counts the number of elements of a list equal to a given value.


Example.
Input:

count_eq(12,[2,12,45,3,7,78])

Output:

1

Previous Up Next