More Data.Set and Data.Map operations

Henning Thielemann lemming at henning-thielemann.de
Mon Aug 8 15:48:46 UTC 2016


On Mon, 8 Aug 2016, David Feuer wrote:

> So what names would you prefer?

Good question. I would prefer something with takeWhile and dropWhile, 
however that also only matches if the predicates are monotonic. We already 
have mapMonotonic. Maybe:

    takeWhileMonotonic
    dropWhileMonotonic
    spanMonotonic


More information about the Libraries mailing list