On Tue, Aug 25, 2020 at 2:31 PM Andy Bach <andy_b...@wiwb.uscourts.gov> wrote:
> Pretty cool - I didn't know about the bare "$" as a magic state var. > They can be pretty great, especially when combined with the magic op= operators that (in essence) know about identity elements. I've done a few challenges on the Code Golf Stackexchange site where I wanted an infinite sequence like this: 0, 1, -2, 3, -4, 5, -6, ... It took me a while to realize this can be expressed in Raku simply as: { $++ * ($ *= -1) } ... *