On 16 January 2013 06:29, Garrett Kolpin gkolpin@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 b c (d))
Is this something that could be added?
Possibly. Please explain it in the docstring and send the patch as generated by git format-patch.
Cheers,
-- Nikodemus