[Haskell-cafe] whine and solution about programmers not respecting documentations

Roman Beslik beroal at ukr.net
Mon Jun 28 22:59:56 EDT 2010

  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 at .
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.

More information about the Haskell-Cafe mailing list