I've just noticed the wrong example entry for break:

break            :: (a -> Bool) -> [a] -> ([a], [a])    
break (<2) [1,2,3] = ([1],[2,3])

this should be changed to:
break (>2) [1,2,3] = ([1,2],[3])

C.

Prelude> break (<2) [1,2,3]
([],[1,2,3])
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to