質問

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

役に立ちましたか?

解決

import Data.Char

length $ filter isAlphaNum nameoflist
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top