words

words breaks a string up into a list of words, which were delimited by white space.
>>> words "Lorem ipsum\ndolor"
["Lorem","ipsum","dolor"]
words breaks a ByteString up into a list of words, which were delimited by Chars representing white space.
words breaks a ByteString up into a list of words, which were delimited by Chars representing white space. And
tokens isSpace = words
O(n) Breaks a Text up into a list of words, delimited by Chars representing white space.
Split an input into word-sized Docs.
>>> putDoc (tupled (words "Lorem ipsum dolor"))
(Lorem, ipsum, dolor)
Splits a bytestring InputStream into words. See splitOn and words. Example:
ghci> is <- Streams.fromList ["Hello, world!"] >>= Streams.words
ghci> replicateM 3 (Streams.read is)
[Just "Hello,", Just "world!", Nothing]
Note that this may increase the chunk size if the input contains extremely long words.
Break up a textual sequence into a list of words, which were delimited by white space.
> words "abc  def ghi"
["abc","def","ghi"]
Convert a bytestream to delimited words Note: This function is purely for demonstration purposes since it assumes a particular encoding. You should prefer the Text equivalent of this function from the pipes-text library.
Breaks a string into a list of words
words breaks a byte stream up into a succession of byte streams corresponding to words, breaking on Chars representing white space. This is the genuinely streaming words. A function that returns individual strict bytestrings would concatenate even infinitely long words like cycle "y" in memory. When the stream is known to not contain unreasonably long words, you can write mapped toStrict . words or the like, if strict bytestrings are needed.
Splits the given YiString into a list of words, where spaces are determined by isSpace. No empty strings are in the result list.
words takes Text and splits it into the list by words. Actual type of this function is the following:
words :: Text -> [Text]
but it was given a more complex type to provide friendlier compile time errors.
>>> words ""
[]

>>> words "one line"
["one","line"]

>>> words "   >_<   "
[">_<"]

>>> words ("string words" :: String)
...
... 'words' works with 'Text', not 'String'.
Possible fixes:
1. Make sure OverloadedStrings extension is enabled.
2. Apply 'toText' to a single value.
3. Apply 'map toText' to the list value.
...

>>> words True
...
... 'words' works with 'Text'
But given: 'Bool'
...
Break a string up into a stream of strings, which were delimited by characters representing white space.
words = S.words A.write
>>> Stream.toList $ Unicode.words $ Stream.fromList "A  newline\nis considered white space?"
["A","newline","is","considered","white","space?"]
Break a string up into a stream of strings, which were delimited by characters representing white space.
words = S.words A.write
>>> Stream.toList $ Unicode.words $ Stream.fromList "A  newline\nis considered white space?"
[fromListN 1 "A",fromListN 7 "newline",fromListN 2 "is",fromListN 10 "considered",fromListN 5 "white",fromListN 6 "space?"]
Fold each word of the stream using the supplied Fold and stream the result.
>>> Stream.toList $ words Fold.toList (Stream.fromList "fold these     words")
["fold","these","words"]
words = S.wordsBy isSpace
Pre-release
Split words in a string using spaces as separation
words "Hello Foundation"
The words function breaks a stream of characters into a stream of words, which were delimited by white space. Beware: if the stream of characters xs does not contain white space, accessing the tail of words xs will loop.
Break a string into words, splitting on chunks of whitespace.
words "How are \t you? \n Good?" == ["How","are","you?","Good?"]
O(n) Breaks a JSString up into a list of words, delimited by Chars representing white space.
Split a string into words.
Not on Stackage, so not searched. Cross-platform access to a list of words
A few little functions I found myself writing inline over and over again.