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?
isLetter
Data.Char
yes, that function is from Data.Char, I omitted the import together with the module header.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 ofData.Char
? Or no need to import that to use theisLetter
function?yes, that function is from
Data.Char
, I omitted the import together with the module header.