import Data.Char
length $ filter isAlphaNum nameoflist
Haskell - Return number of chars excluding punctuation and spaces
-
16-06-2023 - |
Question
I've just learned how to count the number of chars in a string using length nameoflist
and I'm wondering if it's possible to count the number of chars without spaces/punctuation?
Any help is appreciated,thanks
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow