http://www.perlmonks.org?node_id=178040


in reply to Re: Re: How do I write subs that take bare blocks as args?
in thread How do I write subs that take bare blocks as args?

You are right. In my example the { #do stuff } block will get executed if any of the members of @product_list pass the conditions. You want to know if all members pass.

IIRC won't perl6 have some kind of any and all builtins?

--

flounder

Replies are listed 'Best First'.
Re: Re^3: How do I write subs that take bare blocks as args?
by theorbtwo (Prior) on Jun 28, 2002 at 20:44 UTC

    It will. But Quantum::Superpositions will give them to you now. (Warning: This module is superfreaky.)


    We are using here a powerful strategy of synthesis: wishful thinking. -- The Wizard Book