constraint

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContraMap

type ContraMap[A, B any] interface {
	~func(B) A
}

type Foldable

type Foldable[A, B any, M Monoid[A]] interface {
	~func(M, B) A
}

type Functor

type Functor[A, B any, HKTA Type[A], HKTB Type[B], M Map[A, B]] interface {
	~func(HKTA, M) HKTB
}

type HKT

type HKT[T, V any] interface {
	Type[T]
	~func(V)
}

type Identity

type Identity[T any] interface {
	~func() T
}

type Map

type Map[A, B any] interface {
	~func(A) B
}

type Maybe added in v0.0.19

type Maybe[T any] interface {
	~func() (T, error)
}

type Monoid

type Monoid[T any] interface {
	Semigroup[T]
	Identity[T]
}

type Result added in v0.0.19

type Result[T any] interface {
	~func() (T, error)
}

type Semigroup

type Semigroup[T any] interface {
	~func(T, T) T
}

type Type

type Type[T any] interface {
	~func(T)
}

Jump to

Keyboard shortcuts

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