NthChar

Name

NthChar -- Extracts a character from a string

Synopsis

NthChar[text->TEXT, n->INTEGER] =: TEXT 

Description

NthChar returns a text string of length 1 containing the nth character from text. By convention, the first character in a string is indexed by 1. It is an error if n is nonpositive, or if n is greater than the length of text. not equal.

Short forms

text[[n]], text#n.

See also

NumChars.