A blog on Scala, Swift and FP
This diverges if any word is longer than the line length. See my reddit comment http://www.reddit.com/r/haskell/comments/d3ybw/word_wrapping_in_haskell/
That's a minor bug, just change "any isSpace line" to "any isSpace beforeMax".
Thanks, Yitz!
This diverges if any word is longer than the line length. See my reddit comment http://www.reddit.com/r/haskell/comments/d3ybw/word_wrapping_in_haskell/
ReplyDeleteThat's a minor bug, just change "any isSpace line" to "any isSpace beforeMax".
ReplyDeleteThanks, Yitz!
ReplyDelete