Tokenizing Strings

David Roundy droundy@abridgegame.org
Wed, 2 Apr 2003 09:17:37 -0500


On Wed, Apr 02, 2003 at 06:45:54AM -0500, David Roundy wrote:
> 
> tok s = map (concatMap (++ "\n")) $ break null $ lines s

This should be 

tok s = map unlines $ break null $ lines s

which restores the symmetry to the operation, and is therefore much more
readable.

David