Skip to content
This repository was archived by the owner on Jun 5, 2022. It is now read-only.
This repository was archived by the owner on Jun 5, 2022. It is now read-only.

Generalize max, min #8

Closed
Closed
@ThomasCrevoisier

Description

@ThomasCrevoisier

Because those functions have the signature Number -> Number -> Number and I worked with Int, I found myself reimplementing this function for Int.

Maybe I missed an obvious trick, but should it be possible to implement those functions for types which implements Ord typeclass ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions