position(A, f)
position(A, B, f)
position(A, f, Reverse => true)
position(n, f)
position(A, f) returns the smallest index i such that f(A#i) is true. If no element satisfies the condition, null is returned.
|
|
Use position(A, B, f) to return the smallest index i such that f(A#i, B#i) is true.
|
The Reverse option will return the largest index instead.
|
|
Use position(n, f) to return the smallest index i such that f(i) is true.
|
To find all indices of elements satisfying the condition, see positions. To return the elements, rather than their indices, see select. The function number counts the number of elements satisfying the condition.
|
|
|
The object position is a method function with options.
The source of this document is in Macaulay2Doc/functions/position-doc.m2:63:0.