PCPeter Cooper@peterc·6d1/2ea9f5d6Rubyists: guess what this does:rubyarr.map{arr.shift}16:43 · Oct 22, 2026 · commit ea9f5d62QuoteTranslateReply1 reply
Peter Cooper@peterc·6d2/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