sequence

sequence v -- returns v if v is a sequence, otherwise makes a sequence of length one containing v.

     i1 = sequence 4
     
     o1 = seq 4
     
     o1 : Sequence
     
     i2 = sequence {4,5}
     
     o2 = seq {4,5}
     
     o2 : Sequence
     
     i3 = sequence (4,5)
     
     o3 = 4,5
     
     o3 : Sequence
     

See also seq and lists, arrays, and sequences.

Go to main index.

Go to concepts index.