next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc :: toSequence

toSequence -- convert to sequence

Description

toSequence x -- yields the elements of a list or string x as a sequence.

If x is a sequence, then x is returned.

i1 : toSequence {1,2,3}

o1 = (1, 2, 3)

o1 : Sequence
i2 : toSequence "foo"

o2 = (f, o, o)

o2 : Sequence

Ways to use toSequence :

For the programmer

The object toSequence is a compiled function.