re: Daily Challenge #103 - Simple Symbols VIEW POST

TOP OF THREAD FULL DISCUSSION
re: simple Haskell solution: verify :: String -> Bool verify [] = True verify ('+':x:'+':xs) | isLetter x = verify $ '+':xs verify (x:xs) ...
 

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.

code of conduct - report abuse