News for hackers. Stuff that matters.
Re:Array Languages vs. the Curse of the Spreadsheet by elcaro on Wednesday March 06, 2024 @03:27AM (#39613618)
FWIW, I solved this in J as follows

F =: >@{.@(\: #@>)@(#~ (2 >: +/@e.&'aeoiu')@>)

which I think maybe composes a little better

This doesn't include the splitting. I would imagine I would be feeding this function from a boxed list from a word list, like: F 'b' fread 'dict.txt'

Also `;:` is unreliable on hyphenated words, etc. Better to use `cut`.

There are no comments on this comment yet.