|
|
|
|
|
by elcaro
828 days ago
|
|
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`. |
|