Generalise type of deleteBy

Joachim Breitner mail at joachim-breitner.de
Mon Sep 12 00:11:43 UTC 2016


Hi,

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]

function.

Greetings,
Joachim

-- 
Joachim “nomeata” Breitner
  mail at joachim-breitner.dehttps://www.joachim-breitner.de/
  XMPP: nomeata at joachim-breitner.de • OpenPGP-Key: 0xF0FBF51F
  Debian Developer: nomeata at debian.org
-------------- 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: <http://mail.haskell.org/pipermail/libraries/attachments/20160911/5afe7ffc/attachment-0001.sig>


More information about the Libraries mailing list