PCPeter Cooper@peterc·Oct 221/2ea9f5d6Rubyists: guess what this does:rubyarr.map{arr.shift}16:43 · Oct 22, 2026 · commit ea9f5d62QuoteReply1 reply
Peter Cooper@peterc·Oct 222/2579659fAlong similar lines, this is a fun one: rubyarr.max_by &arr.tally .. as a way to return an array's most frequent element.1QuoteReply