fold

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: Unlicense Imports: 0 Imported by: 0

Documentation

Overview

Package fold has functions to aggregate/reduce elements in slices TODO indexed TODO map

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Slice

func Slice[T any, U any](s []T, i U, f func(U, T) U) U

Slice incrementally combines a seed value and then values returned by a function applied to the slice elements, reducing the slice down to a single value, which is returned

Types

This section is empty.

Jump to

Keyboard shortcuts

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