deepSplice X
Unlike the function splice, which removes a single nested level of subsequences, deepSplice recursively flattens subsequences at all levels.
|
|
|
deepSplice does not alter elements that are lists, arrays, or anything other than sequences.
|
|
deepSplice 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, deepSplice returns a new list rather than altering the definition of X.
|
|
|
The object deepSplice is a compiled function.