typo in http://www.haskell.org/onlinereport/prelude-index.html

Christian Maeder maeder at tzi.de
Tue Oct 17 10:06:21 EDT 2006


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])


More information about the Glasgow-haskell-users mailing list