[Haskell-cafe] Filter by several predicates at once
Dougal Stanton
ithika at gmail.com
Thu Jan 17 10:11:01 EST 2008
On 17/01/2008, Stuart Cook <scook0 at gmail.com> wrote:
> On Jan 18, 2008 1:46 AM, Isaac Dupree <isaacdupree at charter.net> wrote:
> > nearly; using Prelude:
> > passall ps v = all ($v) ps
> > passany ps v = any ($v) ps
Yes, thanks Isaac. That should have been obvious, argh...
>
> passall = swing all
> passany = swing any
>
> Whether that's any better than the pointwise version is up to you.
I think in this case I will use the explicit version, because I
wouldn't remember how swing worked. What is the motivation for the
name? ;-) (Do I want to hear the answer...?)
D
--
Dougal Stanton
dougal at dougalstanton.net // http://www.dougalstanton.net
More information about the Haskell-Cafe
mailing list