5 == any( 1 .. 10 )
I can see some usefulness in this, but it operates basically as a range statement. So it does simplify the following by a bit:
for (1 .. 10) { print "$_\n" if ($var == $_); }
Unless there's a simpler way to do this. Same goes for the all example you provided. As for Perl 6, do you know if these were covered in the apocolypses yet?
In reply to Re: Re: Useful uses of Quantum::Superpositions?
by Anonymous Monk
in thread Useful uses of Quantum::Superpositions?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |