Returns a substring of a string; a list of integers that cannot be a span is read as separate specifications
StringTake["string", n]
StringTake["string", - n]
StringTake["string", {n}]
StringTake["string", {m, n}]
StringTake["string", {spec1, spec2, …}]
StringTake[{s1, s2, …}, spec]
StringTake["Hello World!", 5]
→ HelloStringTake["hello", 2;;4]
→ ellStringTake["hello", ;;-2]
→ hellStringTake["abcde", {1, 5, 2}]
→ aceStringTake["abcde", {1, 5, 0}]
→ {a, abcde, }StringTake["abcde", {1, 2, 3, 4}]
→
StringTake::ambgsntx: Warning: interpreting list of integers as a list of sequence specifications.
{a, ab, abc, abcd}StringTake["abcde", {}]