in reply to Re: Useful uses of Quantum::Superpositions?
in thread Useful uses of Quantum::Superpositions?
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Useful uses of Quantum::Superpositions?
by diotalevi (Canon) on Apr 04, 2003 at 07:15 UTC | |
by feanor_269 (Beadle) on Apr 08, 2003 at 16:51 UTC | |
by diotalevi (Canon) on Apr 08, 2003 at 17:06 UTC | |
by Mr. Muskrat (Canon) on Apr 08, 2003 at 17:17 UTC | |
by feanor_269 (Beadle) on Apr 09, 2003 at 19:40 UTC | |
by diotalevi (Canon) on Apr 09, 2003 at 19:46 UTC | |
by Mr. Muskrat (Canon) on Apr 09, 2003 at 19:46 UTC | |
|
Re: Re: Re: Useful uses of Quantum::Superpositions?
by Anonymous Monk on Apr 04, 2003 at 07:08 UTC |