words = S.words A.write
>>> Stream.fold Fold.toList $ Unicode.words $ Stream.fromList "A newline\nis considered white space?" [fromList "A",fromList "newline",fromList "is",fromList "considered",fromList "white",fromList "space?"]
>>> words = Stream.wordsBy Char.isSpaceUsage:
>>> Stream.toList $ Unicode.words Fold.toList (Stream.fromList " ab cd ef ") ["ab","cd","ef"]Pre-release
>>> f x = Stream.toList $ Stream.wordsBy (== '.') Fold.toList $ Stream.fromList x >>> f "a.b" ["a","b"] >>> f "a..b" ["a","b"] >>> f ".a..b." ["a","b"]
>>> Stream.fold Fold.toList $ Unicode.unwords $ Stream.fromList ["unwords", "this", "string"] "unwords this string"
unwords = S.unwords A.readNote that, in general
unwords . words /= id
>>> unwords = Stream.unfoldEachSepBy ' ' >>> unwords = Stream.unfoldEachSepBySeq " " Unfold.fromListPre-release