In Haskell a String
is a type synonym for [Char]
.
If you really want to turn a [Char]
into a lists of one-character String
s (you probably don't):
charStrs :: String -> [String]
charStrs = fmap pure
charStrs "hello world" -- ["h","e","l","l","o"," ","w","o","r","l","d"]
edit updated to pure
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…