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
Optional inputs
:
Reverse => ...
,
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
positions
-- which elements of a list satisfy a condition
Ways to use
position
:
position(VisibleList,Function)
position(VisibleList,VisibleList,Function)
-- find first element of a list satisfying a condition