On Sunday, August 22, Marc Chantreux wrote: > my ($a, $b) = { @^a[0,2...Inf], @a[1,3...Inf] }.(q<(){}[]>.comb); say $a[0]; > say $b[0] > > oh. i never see this direct call of a lambda before but it really makes > sense! this is the answer i like the most.
I think it's possible to avoid the explicit lambda too and just put the expression inside the postcircumfix operator -- raku -e 'say q<AaBbCcDd>.comb[ [0,2 ... *],[1,3 ... *] ]' ((A B C D) (a b c d)) Brian