monoid

package
v0.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monoid

type Monoid[T any] interface {
	S.Semigroup[T]
	Empty() T
}

func From

func From[T any](empty T, combine S.Semigroup[T]) Monoid[T]

func Lift

func Lift[T any, M constraint.Monoid[T]](monoid M) Monoid[T]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL