functools

package module
v0.0.0-...-a058dbb Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: BSD-3-Clause Imports: 0 Imported by: 3

README

Go module that implements concepts typical of functional programming.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter[T any](s []T, f func(T) bool) []T

func Map

func Map[T1, T2 any](s []T1, f func(T1) T2) []T2

func Reduce

func Reduce[T1, T2 any](s []T1, initializer T2, f func(T2, T1) T2) T2

Types

This section is empty.

Jump to

Keyboard shortcuts

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