[alexandria-devel] flatten depth param
Nikodemus Siivola
nikodemus at random-state.net
Sat Jan 26 14:12:54 UTC 2013
On 16 January 2013 06:29, Garrett Kolpin <gkolpin at 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
More information about the alexandria-devel
mailing list