3 ms·
It seems DSL proponents grow from environment without rich standard library. And classic Knuth argument, of course. It's so hard to count words. General purpos
by bvrmn 4y ago
It seems DSL proponents grow from environment without rich standard library.
And classic Knuth argument, of course. It's so hard to count words.
General purpose language:
>>> from collections import Counter
>>> import re
>>> Counter(re.findall('\w+', 'boo foo boo +dfd zii')).most_common(1)
[('boo', 2)]