next | previous | forward | backward | up | top | index | toc | home
Macaulay2 > The Macaulay2 language > lists and sequences > position

position -- find first element of a list satisfying a condition

Synopsis

Description

position(v,f) -- returns the index of the first element of v satisfying the condition f, or null if there is none.

See also

Ways to use position :