This came up in today's Raku study group (my own golfing-)

> ? (any(4,3) ~~ 3)
True
> ? (3 ~~ any(4,3))
True
> given any(4,3) { when 3 {say '3'}; say 'nope'}
nope
> given 3 { when any(4,3) {say '3'}; say 'nope'}
3
> given any(4,3) { say .raku }
any(4, 3)

why does Raku say 'nope' for the example *"**given any(4,3) { when 3 {say
'3'}; say 'nope'}*"

Since this expression is true *? (any(4,3) ~~ 3)*
I expected the "*given 4|3*" to also match "*when 3*"

-y

Reply via email to