klyn.collections.ArraySync.count
method
public native count(item as T) as ULong
Description

Counts occurrences of the given element.

import klyn.collections

values = fs:[10, 20, 10]
print(values.count(10))    # 2
Parameters
  • item The element to count.
Returns

Number of matching elements.