select

select(v,f) -- select elements of list or hash table which yield true when the function f is applied.

For a hash table, the function is applied to each value. This may change, for perhaps it should be applied to the key/value pair. The hash table hsould be immutable. To scan the pairs in a mutable hash table, use scan(values x, f) .

See also scan, apply, any, all, and member.

Go to main index.

Go to concepts index.