higherorder

package module
v0.0.0-...-7c42867 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Foldl

func Foldl[A any](f func(x, y A) A, start A, list []A) A

Foldl applies a function to each element of a list, starting from the left. A single value is returned.

func Foldr

func Foldr[A any](f func(x, y A) A, start A, list []A) A

Foldr applies a function to each element of a list, starting from the right. A single value is returned.

func Map

func Map[A, B any](f func(A) B, list []A) []B

Map applies a given function to each element of a list, returning a new list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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