Word break problem: Difference between revisions
Content added Content deleted
m (→{{header|Haskell}}: Tidying) |
|||
Line 229: | Line 229: | ||
wordBreaks :: [String] -> String -> String |
wordBreaks :: [String] -> String -> String |
||
wordBreaks ws = (++) <*> |
wordBreaks ws = (++) <*> (":\n" ++) . report . fmap go . tokenTrees ws |
||
where |
where |
||
go t |
go t |