[alexandria-devel] flatten depth param
Garrett Kolpin
gkolpin at gmail.com
Wed Jan 16 04:29:54 UTC 2013
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?
Thanks,
-Garrett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/alexandria-devel/attachments/20130115/35099d62/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flatten-depth.patch
Type: application/octet-stream
Size: 1848 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/alexandria-devel/attachments/20130115/35099d62/attachment.obj>
More information about the alexandria-devel
mailing list