Methods

indexesΒΆ

indexes(arr:Arr, predicate:Any)

Find all indexes of values that satisfy the predicate TODO: Make it work on anything with each() method
Source: stdlib.ngs:1219

arr

Items to look at

predicate

Test function

Returns

Arr of Int

Example

[1,5,1,10].indexes(X>2)  # [1,3]