Chris Moline <[EMAIL PROTECTED]> writes:

> dropWhile p = foldr (\x l' -> if p x then l' else x:l') []

invalid:  dropWhile (< 5) [1, 10, 1]  should return [10, 1]
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to