Me: Readability, simplicity, KISS ๐Ÿ‘ Also me: Could be done in one pass, I am suffering ๐Ÿ˜ฌ Me: Not even measurable motherfucker ๐Ÿ‘ Also me: Could be done in one pass, I am suffering ๐Ÿ˜ฌ
3
0
22
So, thanks to this semi-joke, I learned from @asterite that `Enumerable` has `max_of` in Crystal. So this one is more concise, even shorter, and more performant: It does not build an intermediary array, and does everything in one pass. As you'd do it by hand. ๐Ÿ’ช

9:21 AM ยท Jan 10, 2021

0
0
8