Methods
count
ΒΆ
count(arr:
Arr
, predicate:
Any
)
Count number of items that satisfy the predicate. TODO: Make it work on anything with each() method.
Source:
stdlib.ngs:1154
arr
Items to look at
predicate
Test function
Returns
Int
Example
[1,2,3,11,12].count(X>10) # 2