3 ms·
My initial solution works in real Ruby, but it didn't work in this demo: http://imgur.com/YBYwN http://imgur.com/YBYwN Apparently, assigning the result of a co
by dlitz 15y ago
My initial solution works in real Ruby, but it didn't work in this demo: http://imgur.com/YBYwN http://imgur.com/YBYwN
Apparently, assigning the result of a comparison to a literal breaks this demo.
Edit: Also, bonus points if you can elaborate on why you think my second solution really does work correctly, despite the apparent bug. :)