haskell
haskell copied to clipboard
Reference solution for word-count doesn't solve the example
The example given on the problem description is not solved by either solution in examples
when run on the instruction sample:
"That's the password: 'PASSWORD 123'!", cried the Special Agent.\nSo I fled.
It gives the output:
123': 1
passwor: 1
password: 1
...
instead of the suggested
password: 2
123: 1
...