algebra

package
v0.0.0-...-0e61b49 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 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 HKTMonoid

type HKTMonoid struct{}

func (*HKTMonoid) Combine

func (*HKTMonoid) Empty

func (m *HKTMonoid) Empty() types.HKT[maybe.MaybeKind, string]

type Monoid

type Monoid[A any] interface {
	Semigroup[A]
	Empty() A
}

type Semigroup

type Semigroup[A any] interface {
	Combine(A, A) A
}

Jump to

Keyboard shortcuts

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