
28 Jun
2010
28 Jun
'10
10:59 p.m.
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 @pred@. 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.