note
TheDamian
You could also use the Smart::Match module with smartmatching:
<code>
use Smart::Match 'all';
if ( 0 ~~ all(@array[0,1]) ) {
say 'matched';
}
</code>
Or you could do exactly the same thing "natively", in Perl 6:
<code>
if @array[0 & 1] == 0 {
say 'matched';
}
</code>
Damian
1170403
1170403