Hello:
I've created a patch for this. The only difference is that instead of
flattening to a particular depth, it flattens by a particular number
of levels. I thought this was more in the spirit of FLATTEN. If we
want to flatten to a particular depth, it is a trivial computation.
I've attached a
On 16 January 2013 06:29, Garrett Kolpin gkol...@gmail.com wrote:
Hi,
I've found it useful to be able to specify a depth when flattening a list
structure. The attached patch adds a :to-depth keyword parameter to the
flatten function. For instance,
(flatten '((a b) (c (d)) :to-depth 1) = (a