next | previous | forward | backward | up | top | index | toc | home

splice -- remove subsequences

Description

splice v -- yields a new list v where any members of v which are sequences are replaced by their elements.

Works also for sequences, and leaves other expressions unchanged. Copying the list v is always done when v is mutable. Certain functions always splice their arguments or their argument lists for the sake of convenience.

i1 : splice ((a,b),c,(d,(e,f)))

o1 = (a, b, c, d, (e, f))

o1 : Sequence
i2 : splice [(a,b),c,(d,(e,f))]

o2 = [a, b, c, d, (e, f)]

o2 : Array

See also

Ways to use splice :