Skip to content

Could I add average? #316

@aleator

Description

@aleator

I find myself needing average perhaps more often than other people, but would it be ok to submit a patch to add either or both of these to relude:

average :: (Fractional a, Foldable f) => f a -> Maybe a

averageNonEmpty :: Fractional a => NonEmpty a -> a

A minor thing, but still a quality of life improvement in my opinion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    extraRelude.ExtranewBring something new into library (add function or type or interface)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions