timotimo , vor einem Monat Englisch @foone @ClarusPlusPlus yes! Raku (nee Perl 6) has this, it's called junctions and it works in some pretty wild combinations if you really want. for <-1 0 -2 0 1 1 2 2 3 0 4 0> -> $x, $y { if all($x, $y) == any(-1, 0, 1) { say "($x $y) inside" } } gives (-1 0) inside (1 1) inside
@foone @ClarusPlusPlus yes! Raku (nee Perl 6) has this, it's called junctions and it works in some pretty wild combinations if you really want.
for <-1 0 -2 0 1 1 2 2 3 0 4 0> -> $x, $y { if all($x, $y) == any(-1, 0, 1) { say "($x $y) inside" } }
gives
(-1 0) inside (1 1) inside