klyn.collections.ImmutableList.count
method
public override count(item as T) as ULong
Description

Counts occurrences of the given value.

Parameters
ParameterDescription
itemThe value to count.
Returns

Number of matching elements.

Example

assert i:[10, 20, 10].count(10) == 2ul