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
Replying to @fxn
Instead of map + map you can use map_of which is less typing and it's actually more efficient

10:04 PM ยท Jan 9, 2021

2
0
2
Replying to @asterite @fxn
I meant map + max
0
0
0
Replying to @asterite
Did not know that method. I was thinking about doing it manually, you know, each with manual comparison in the loop body, but that max_of is the same idea automated, which is perfect. Thanks Ary!
1
0
1
We should add that method to Ruby too, I made my own a few times for the same concerns
0
0
2