In the case of 'deleteBy' we can improve an API.
deleteBy eq x xs == deletePred (eq x) xs
@deletePred pred xs@ removes the first element of @xs@ which satisfies a
predicate @p...@.
Your solution is more general. :)
On 28.06.10 22:44, Albert Y.C.Lai wrote:
And then some programmers are in a miserable state of not respecting docs
when the docs are complete.
Why should anyone expect
deleteBy (>=) 5 [0..10]
--
Best regards,
Roman Beslik.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe