splice X
Unlike the function deepSplice, which recursively flattens subsequences at all levels, splice removes the outermost nested level of subsequences only.
|
|
|
splice does not alter elements that are lists, arrays, or anything other than sequences.
|
|
splice works on sequences, too, and all other objects of class BasicList. The output matches the class of the input.
|
|
Even if X is a MutableList, splice returns a new list rather than altering the definition of X.
|
|
|
The object splice is a compiled function.