Documentation ¶
Index ¶
- 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]
- 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]
- func Reduce[K comparable, V any, IT c.KVIterator[K, V]](elements IT, by c.Quaternary[K, V]) (K, V)
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.
Click to show internal directories.
Click to hide internal directories.