Macaulay2 » Documentation
Packages » Macaulay2Doc > The Macaulay2 language > strings and nets > String _ ZZ
next | previous | forward | backward | up | index | toc

String _ ZZ -- get element from string

Synopsis

Description

The characters are numbered starting with 0. If i is negative, then the i-th entry counting from the end is provided. If i is out of range, an error is signaled.

i1 : s = "what are you thinking?"

o1 = what are you thinking?
i2 : #s

o2 = 22
i3 : s_-1, s_19, s_0

o3 = (?, n, w)

o3 : Sequence

See also

Ways to use this method: