StringTools[NthWord] - generate the nth word on a given alphabet
|
Calling Sequence
|
|
NthWord( alphabet, n )
|
|
Parameters
|
|
alphabet
|
-
|
string; alphabet to use
|
n
|
-
|
non-negative integer; nth word to generate
|
|
|
|
|
Description
|
|
•
|
The NthWord(alphabet, n) command generates the nth word on the given ordered alphabet, which consists of the characters in the string alphabet. The string alphabet must not contain repeated characters. Words are enumerated in shortlex order.
|
•
|
The th word on any alphabet is the empty string .
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
|
|
Download Help Document
Was this information helpful?