StringTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Names and Strings : StringTools Package : Constructors : StringTools/Tabulate

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.

Examples

withStringTools:

evalbTabulateChar,200=Ι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

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam