map_

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter[K comparable, V any, IT c.KVIterator[K, V]](elements IT, filter c.BiPredicate[K, V]) c.MapPipe[K, V, map[K]V]

Filter instantiates key/value iterator that checks elements by filters and returns successful ones.

func Map

func Map[K comparable, V any, IT c.KVIterator[K, V], kto comparable, vto any](elements IT, by c.BiConverter[K, V, kto, vto]) c.MapPipe[kto, vto, map[kto]vto]

Map instantiates key/value iterator that converts elements with a converter and returns them

func Reduce

func Reduce[K comparable, V any, IT c.KVIterator[K, V]](elements IT, by c.Quaternary[K, V]) (K, V)

Reduce reduces keys/value pairs to an one pair.

Types

This section is empty.

Jump to

Keyboard shortcuts

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