- concatenate list-of-listsprocedure
- concatenate! list-of-listsprocedure
These functions append the elements of their argument together. That is, concatenate returns
(apply append list-of-lists)
(reduce-right append '() list-of-lists)
concatenate! is the linear-update variant, defined in terms of append! instead of append.
Note that some Scheme implementations do not support passing more than a certain number (e.g., 64) of arguments to an n-ary procedure. In these implementations, the (apply append ...) idiom would fail when applied to long lists, but concatenate would continue to function properly.
As with append and append!, the last element of the input list may be any value at all.