2 ms·
I had to think about what that loop does for an embarrassingly long time. I’ve never seen XOR used as an in-place alternation operator like that in a for loop.
by jiggawatts 3y ago
I had to think about what that loop does for an embarrassingly long time.
I’ve never seen XOR used as an in-place alternation operator like that in a for loop. I’ve only ever seen it used as a swap function not an inline expression.
I’ve also never seen a for loop that uses a mutable string updated char-by-char like that.
It’s just… special.