function

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compose

func Compose[A, B, C any](f func(A) B, g func(B) C) func(A) C

func Const

func Const[A any](a A) func(any) A

func Curry2

func Curry2[A, B, C any](f func(A, B) C) func(A) func(B) C

func Curry3

func Curry3[A, B, C, D any](f func(A, B, C) D) func(A) func(B) func(C) D

func Curry4

func Curry4[A, B, C, D, E any](f func(A, B, C, D) E) func(A) func(B) func(C) func(D) E

func Curry5

func Curry5[A, B, C, D, E, F any](f func(A, B, C, D, E) F) func(A) func(B) func(C) func(D) func(E) F

func Curry6

func Curry6[A, B, C, D, E, F, G any](
	f func(A, B, C, D, E, F) G,
) func(A) func(B) func(C) func(D) func(E) func(F) G

func Curry7

func Curry7[A, B, C, D, E, F, G, H any](
	f func(A, B, C, D, E, F, G) H,
) func(A) func(B) func(C) func(D) func(E) func(F) func(G) H

func Flip

func Flip[A, B, C any](f func(A, B) C) func(B, A) C

func Identity

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

func Unpack

func Unpack[A, B any](f Func[A, B]) func(A) B

Types

type Func

type Func[A, B any] func(A) B

func From

func From[A, B any](f func(A) B) Func[A, B]

func (Func[A, B]) ElemType

func (f Func[A, B]) ElemType(B)

func (Func[A, B]) Kind

func (f Func[A, B]) Kind(ReaderKind)

type Reader

type Reader[A any] types.HKT[ReaderKind, A]

type ReaderKind

type ReaderKind types.Kind

Jump to

Keyboard shortcuts

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