4 ms·Pretty sure the words function can be simplified to {⍴(~⍵∊⍺)⊆⍵} (and it also handles empty strings).by breadandcrumbel 7y agoPretty sure the words function can be simplified to {⍴(~⍵∊⍺)⊆⍵} (and it also handles empty strings).olzd 7y agoHow nice of you to copy/paste my reddit comment!coldtea 7y agoRelevant comment parent mentions here: https://www.reddit.com/r/programming/comments/dku13a/beating_c_with_dyalog_apl_wc/ https://www.reddit.com/r/programming/comments/dku13a/beating...