words is:exact package:streamly-core

Break a string up into a stream of strings, which were delimited by characters representing white space.
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?"]
Fold each word of the stream using the supplied Fold and stream the result.
>>> Stream.fold Fold.toList $ words Fold.toList (Stream.fromList "fold these     words")
["fold","these","words"]
words = Stream.wordsBy isSpace
Pre-release