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

String _ List -- create a string from characters at given indices

Description

Given a string s and a list of integer indices ind, this method returns a new string formed by concatenating the characters of s at the positions specified by ind in the order given. Indices may be repeated, omitted, or given in any order.

i1 : "Macaulay2"_{0..2}

o1 = Mac
i2 : "Macaulay2"_{5,4,3,4}

o2 = luau

See also

Ways to use this method:

  • String _ List -- create a string from characters at given indices

The source of this document is in Macaulay2Doc/operators/underscore.m2:137:0.