tfwh-0.3.7.0
TFwH.Chap01.ExD
Synopsis
type Text = String Source #
type Word = String Source #
words' :: Text -> [Word] Source #
words'' :: Text -> [Word] Source #
>>> let sample = "To be or not to be" >>> words' sample ["to","be","or","not","to","be"] >>> words'' sample ["to","be","or","not","to","be"]
>>>
let sample = "To be or not to be"
words' sample
words'' sample