Previous Up Next

2.37.12  Transform a sequence into a list : makevector []

Square brackets put around a sequence transform this sequence into a list or vector. The equivalent prefixed function is makevector which takes a sequence as argument.
makevector transforms this sequence into a list or vector.
Input :

makevector(0,1,2)

Output :

[0,1,2]

Input :

a:=(0,1,2)

Input :

[a]

Or :

makevector(a)

Output :

[0,1,2]

Previous Up Next