What's going on with "given (junction) {when (value)...}"

2021-05-30 Thread yary
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 *

Re: how to form rules for commutative triads?

2021-05-30 Thread rir
On Sat, May 29, 2021 at 09:51:22PM -0500, Bruce Gray wrote: > > On May 29, 2021, at 5:57 PM, rir wrote: > >rule cmp_expression { > >| > >| > >| ... > >} > I am not at all clear on what you are asking, so if none of my ideas are > helpful, > please conside