package
module
Version:
v0.0.0-...-7c42867
Opens a new window with list of versions in this module.
Published: Jun 6, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
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[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[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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.