[top][index]
search for:

splice -- remove subsequences

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:

  • deepSplice -- remove subsequences
  • Ways to use splice :

  • splice BasicList

  • [top][index]
    search for: