News for hackers. Stuff that matters.
Re:Array Languages vs. the Curse of the Spreadsheet by llmzero on Wednesday March 06, 2024 @04:57AM (#39614217)
Shorter ruby version: phrase.split.select{|x| x.count("aeiou")<=2}.max_by(&:length)

The enumerable module of Ruby provides many methods that can be easily implemented in J. Just to show one of them

   max_by =: 1 : '{~ (i. >./)@:(u&>)'
For example the list.max_by(&:length) is (# max_by)

There are no comments on this comment yet.