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

Daniel Fischer daniel.is.fischer at web.de
Tue Jun 29 06:52:32 EDT 2010

On Tuesday 29 June 2010 12:46:21, Ivan Lazar Miljenovic wrote:
> At most one element, yes; I question why that design decision was made
> as I'm more likely to want to delete all values rather than just the
> first one

That's more common, yes (I don't remember ever having used delete(By) 
intentionally). But we've filter for that, so it wouldn't make sense to 
give delete(By) the same semantics. Hence, if you provide both names, what 
else could deleteBy do?

> (does anyone actually like/rely on the current functionality
> of delete/deleteBy w.r.t. repeated values?).

I doubt it.

More information about the Haskell-Cafe mailing list