Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ord: minimum / maximum #36

Closed
samhh opened this issue Dec 9, 2020 · 1 comment
Closed

Ord: minimum / maximum #36

samhh opened this issue Dec 9, 2020 · 1 comment

Comments

@samhh
Copy link
Owner

samhh commented Dec 9, 2020

e.g.

const minimum = <A>(ord: Ord<A>): ((xs: NonEmptyArray<A>) => A) => NEA.fold(getMeetSemigroup(ord))

Like Haskell's minimum and maximum, but total.

@samhh
Copy link
Owner Author

samhh commented Jan 25, 2021

4cb4fba

@samhh samhh closed this as completed Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant