fp

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply[T any](startVal T, callables ...func(T) T) T

func ApplyE

func ApplyE[T any](startVal T, callables ...func(T) (T, error)) (T, error)

func Filter

func Filter[T any](predicate func(T) bool, vals []T) []T

func FilterE

func FilterE[T any](predicate func(T) (bool, error), vals []T) ([]T, error)

func Map

func Map[T, P any](callable func(T) P, vals []T) []P

func MapE

func MapE[T, P any](callable func(T) (P, error), vals []T) ([]P, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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