Generalise type of deleteBy

Joachim Breitner mail at
Mon Sep 12 00:11:43 UTC 2016


Am Sonntag, den 11.09.2016, 11:25 +0100 schrieb Matthew Pickering:
> deleteBy :: (a -> b -> Bool) -> a -> [b] -> [b]

-1 from me. This makes this different from the usual fooBy pattern, and
the fact this this is possible points to some code smell, namely the
lack of a

     (a -> Bool) -> [a] -> [a]



Joachim “nomeata” Breitner
  mail at joachim-breitner.de
  XMPP: nomeata at • OpenPGP-Key: 0xF0FBF51F
  Debian Developer: nomeata at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the Libraries mailing list