select and collect

Q&A's, tips, howto's
Locked
eddier
Posts: 289
Joined: Mon Oct 07, 2002 2:48 pm
Location: Blue Mountain College, MS US

select and collect

Post by eddier »

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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

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

eddier
Posts: 289
Joined: Mon Oct 07, 2002 2:48 pm
Location: Blue Mountain College, MS US

Post by eddier »

Thanks!

Eddie

Locked