newLISP Fan Club

Forum => newLISP in the real world => Topic started by: eddier on September 03, 2004, 12:00:47 PM

Title: select and collect
Post by: eddier on September 03, 2004, 12:00:47 PM
Wonder if select and collect could be one function? I keep getting them confused.



If the third argument is an integer, then work like collect.

If the third argument is a list, then work like select.



Eddie
Title:
Post by: Lutz on September 03, 2004, 01:02:32 PM
I agree, they can be collapsed, the same is already happening in other functions, i.e. 'push' and 'pop' or net-select. I will collapse both in the next version, so both do the same and can do list or integers, later then we deprecate one of them.



Lutz
Title:
Post by: eddier on September 07, 2004, 06:16:46 AM
Thanks!



Eddie