in reply to Re: Rosetta PGA-TRAM
in thread Rosetta PGA-TRAM
but you still wind up with one paren after a brace. Or if you reversed the written order, so "everything to the right" is indeed the argument to the listop, I think this works:$result= ( $x.split('') ==> map { %rtoa{$_.uc} } ==> reduce { $^a+$^b +-$a%$b*2 } );
which makes me think that there is merit in doing it that way as originally presented. listops are naturally written with the processing sequence in the opposite order. Fighting it means adding parens, no matter how you try.reduce {$^a+$^b-$a%$b*2 } map { %rtoa{$_.uc} } $x.split('');
|
---|