Whoa, I was comming with something that involved using an indexedMap but your solution is very clever. Thanks for sharing your awesome answer!
Also, isn't isLetter part of Data.Char? Or no need to import that to use the isLetter function?
yes, that function is from Data.Char, I omitted the import together with the module header.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.