Add one to the Ints connection:
put any( 1, 3, 7 ) + 1;
Now you have the connection of these Ints increased by one:
any(2, 4, 8)
So 2 == any(2, 4, 8) true.
Make a string join and add to these lines:
put any( <h H> ) ~ 'amadryas';
You get another result that is not equal to "hamadryas" or "Hamadryas":
any("h", "H")amadryas
I was expecting something like:
any( 'hamadryas', 'Hamadryas' );
What difference in these operations gives them a different behavior, even if they should be similar?
perl6 perl6-junction
brian d foy
source share