Tabulate - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


StringTools

  

Tabulate

  

generate strings over integer ranges

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Tabulate( p, n )

Parameters

p

-

procedure mapping integers to characters

n

-

positive integer or character

Description

• 

The Tabulate(p, n) command generates strings over integer ranges. It constructs the string catseqpi,i=1..n. For an integer i in the range 1..n, the expression pi must evaluate to a string of type character. Typically, p is of type procedure. The second argument n must be a non-negative 32-bit integer.

• 

All of the StringTools package commands treat strings as (null-terminated) sequences of 8-bit (ASCII) characters.  Thus, there is no support for multibyte character encodings, such as unicode encodings.

Examples

withStringTools:

evalb( Tabulate( Char, 200 ) = Iota( 1, 200 ) );

true

(1)

Tabulaten→`if`n::even,b,a,100

abababababababababababababababababababababababababababababababababababababababababababababababababab

(2)

Tabulaten→Charn+Orda1,26

abcdefghijklmnopqrstuvwxyz

(3)

Tabulaten→`if`n::prime,*,.,2000

.**.*.*...*.*...*.*...*.....*.*.....*...*.*...*.....*.....*.*.....*...*.*.....*...*.....*.......*...*.*...*.*...*.............*...*.....*.*.........*.*.....*.....*...*.....*.....*.*.........*.*...*.*...........*...........*...*.*...*.....*.*.........*.....*.....*.....*.*.....*...*.*.........*.............*...*.*...*.............*.....*.........*.*...*.....*.......*.....*.....*...*.....*.......*...*.......*.........*.*.........*.*.....*...*.....*.......*...*.*...*...........*.......*...*.......*...*.....*...........*.*.................*.....*.........*.....*.....*.*.....*.........*.....*.....*.*.....*.....*...*.*...........*.........*.*...*.....*.....*.*...........*...*.....*.......*.........*.......*.........*.......*.....*.....*...*.......*.....*...*.......*...*.............*.........*...........*.*.........*.*...*.*.........*.............*...*.*...*.............*...*.*...*...................*...*.......*.........*.......*...*.....*.....*.............*...*.....*.....*.......*.....*...........*...*.....*.*.........*.*.....*.........*.*.........*.*.....*.................*...*.*...*.....*.....*.......*.....*.....*.....................*.*.........*.......*.........*.....*.....*.......*...........*...*.....*.....*.*.....*...........*.........*.................*.*...*.....*.*.....*...*.*...*...........*.*.....*.................................*.....*.....*.......*.................*.........*.............*...*.*...*.....*.......*...*.*.....*...........*.........*.*...*.*...*.....*...........*...........*.......*...........*.....*...*.....*.......*...*.......*...*.............*...*.....*.*...*.....*.*.....*.........*...................*.....*...*.*.......................*...*.*.........*...........*.*.........*.......*.....*.....*.....*.................*.....*...*.*...........*.........*...........*.......*...............*.............*.....*...*.*...*.*.........*...........*.....*.....*.................*.*...............*.*.....................*.....*.......*.....*...*.*.

(4)

See Also

cat

seq

string

StringTools

StringTools[Char]

StringTools[Iota]

StringTools[Ord]

type,character

type,procedure