develooper Front page | perl.perl6.language | Postings from March 2009

Re: Junction Algebra

Thread Previous | Thread Next
Jon Lang
March 30, 2009 06:22
Re: Junction Algebra
Message ID:
Here's another useful one:

    any($x) eqv all($x) eqv one($x) eqv $x


    none($x) !eqv $x

That is, applying any, all, or one to a one-item list produces the
equivalent to a single item.  For an empty list: any() eqv all() eqv
().  But what about one() and none()?

Jonathan "Dataweaver" Lang

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About