package ord

import "github.com/IBM/fp-go/semigroup/ord"

Index

Functions

func Max

func Max[A any](o O.Ord[A]) S.Semigroup[A]

Max gets a semigroup where `concat` will return the maximum, based on the provided order.

func Min

func Min[A any](o O.Ord[A]) S.Semigroup[A]

Min gets a semigroup where `concat` will return the minimum, based on the provided order.

Source Files

semigroup.go

Version
v1.0.151 (latest)
Published
Nov 23, 2024
Platform
linux/amd64
Imports
2 packages
Last checked
4 months ago

Tools for package owners.