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

positions -- which elements of a list satisfy a condition

Description

positions(v,f) -- yields a list of integers giving the positions of the elements of the list v which yield the value true when the function f is applied.

See also

Ways to use positions :