• Grégoire Locqueville's avatar
    Replace `occurrencesWith` with a simpler function · a36d62b5
    Grégoire Locqueville authored
    `occurrencesWith` takes a function parameter to map over the input
    collection before counting occurrences. Every time it's called, though,
    it's with `identity`, so I replaced the function with a basic occurence
    counting function.
    
    Note that if one needs to apply a function to a collection before counting
    occurrences, they can simply `fmap` over the collection first.
    a36d62b5
Utils.hs 3.25 KB