FromLetterNumber

FromLetterNumber[n]

gives the lowercase letter at position n in the English alphabet.

FromLetterNumber[n,alpha]

gives the letter at position n in the alphabet specified by alpha.

Details

  • An alphabet can be specified by the entity for a language, or by its standard name.
  • FromLetterNumber automatically threads over lists.
  • Negative positions count from the end of the alphabet, starting at .
  • FromLetterNumber[0] gives " ".

Examples

open allclose all

Basic Examples  (4)

Get the 4^(th) letter in the English alphabet:

Get letters at several positions in the English alphabet:

Get the 4^(th) letter in the Greek alphabet:

Get the last letter in the Greek alphabet:

Get the letter from the alphabet specified by a language entity:

Applications  (2)

Label a sequence of cases by successive letters:

Include parentheses in the labels:

Make a string from a list of integers:

Properties & Relations  (1)

LetterNumber inverts the operation performed by FromLetterNumber:

Introduced in 2015
 (10.1)
 |
Updated in 2017
 (11.1)