Help us shape the future of Go! Take the 2026 Go Developer Survey

constant

package
v1.1.84 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ap

func Ap[E, A, B any](s S.Semigroup[E]) func(fa Const[E, A]) func(fab Const[E, func(A) B]) Const[E, B]

func Map

func Map[E, A, B any](f func(A) B) func(fa Const[E, A]) Const[E, B]

func MonadAp

func MonadAp[E, A, B any](s S.Semigroup[E]) func(fab Const[E, func(A) B], fa Const[E, A]) Const[E, B]

func Of

func Of[E, A any](m M.Monoid[E]) func(A) Const[E, A]

func Unwrap

func Unwrap[E, A any](c Const[E, A]) E

Types

type Const

type Const[E, A any] struct {
	// contains filtered or unexported fields
}

func Make

func Make[E, A any](e E) Const[E, A]

func MonadMap

func MonadMap[E, A, B any](fa Const[E, A], _ func(A) B) Const[E, B]

Jump to

Keyboard shortcuts

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