endomorphism

package
v1.0.77 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Monoid

func Monoid[A any]() M.Monoid[Endomorphism[A]]

Monoid for the Endomorphism where the `concat` operation is the usual function composition.

func Semigroup

func Semigroup[A any]() S.Semigroup[Endomorphism[A]]

Semigroup for the Endomorphism where the `concat` operation is the usual function composition.

Types

type Endomorphism added in v1.0.75

type Endomorphism[A any] func(A) A

Endomorphism is a function that

func Identity added in v1.0.75

func Identity[A any]() Endomorphism[A]

Identity returns the identity Endomorphism

func Of added in v1.0.75

func Of[F ~func(A) A, A any](f F) Endomorphism[A]

Of converts any function to an Endomorphism

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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