positions(A, f)
The indices are listed in ascending order. If no element satisfies the condition, an empty list is returned.
|
|
|
To find the first or last index of an element satisfying the condition, see position. To return the elements, rather than their indices, see select. The function number counts the number of elements satisfying the condition.
|
|
|
|
The object positions is a method function.