words package:streams

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.
The unwords function is an inverse operation to words. It joins words with separating spaces.