fp

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurryRight2

func CurryRight2[T1, T2, R any](fn func(T1, T2) R) func(t2 T2) func(t1 T1) R

func Filter

func Filter[I any](check func(v I) bool) func(in []I) []I

func FilterMap

func FilterMap[I any, O any](check func(v I) (O, bool)) func(in []I) []O

func Map

func Map[I any, O any](m func(v I) O) func(in []I) []O

func Pipe1

func Pipe1[T1, R any](t1 T1, fn1 func(T1) R) R

func Pipe2

func Pipe2[T1, T2, R any](t1 T1, fn1 func(T1) T2, fn2 func(T2) R) R

func Pipe3

func Pipe3[T1, T2, T3, R any](t1 T1, fn1 func(T1) T2, fn2 func(T2) T3, fn3 func(T3) R) R

Types

This section is empty.

Jump to

Keyboard shortcuts

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