in reply to Filter objects?
In Perl you can apply a predicate to a list using the "grep" function and you get back all the things in the list that the predicate classifies as "true". E.g.
prints "7 6 5".perl -le 'print join " ", grep { $_ > 4 } (1,7,2,6,3,5,4)'
In other languages, this function (or its inverse) may be called "find_all", "filter", "select", "remove-if", or "reject". I don't know of any general framework for an XML syntax for the predicates or the filters, though
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Filter objects?
by Anonymous Monk on Jan 29, 2003 at 09:01 UTC | |
by Anonymous Monk on Jan 29, 2003 at 09:18 UTC |