package
module
Version:
v0.0.0-...-cbea934
Opens a new window with list of versions in this module.
Published: Jun 9, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Filter[T any](slice []T, tester func(t T) bool) []T
-
func Flatten[T comparable, V any, M any](m map[T]V, flatterner func(V) M) []M
-
func Map[T any, M any](s []T, f func(T) M) []M
-
func Reduce[T any, M any](s []T, f func(M, T) M, initValue M) M
-
type ByteValue
-
type Queue
func Filter[T any](slice []T, tester func(t T) bool) []T
func Flatten[T comparable, V any, M any](m map[T]V, flatterner func(V) M) []M
transform map to array
func Map[T any, M any](s []T, f func(T) M) []M
func Reduce[T any, M any](s []T, f func(M, T) M, initValue M) M
func (r *Queue[T]) Push(a T)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.