typed

package
v0.0.0-...-e9169e4 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concat

func Concat[K constraints.Ordered, V any](maps ...map[K]V) map[K]V

func Debounce

func Debounce[T any](in <-chan T) <-chan T

func Every

func Every[T any](duration time.Duration, in <-chan T) <-chan T

func MapSlice

func MapSlice[T any, K any](values []T, mapper func(T) K) []K

func New

func New[T any]() T

func NewAs

func NewAs[T any, R any]() R

func Pointer

func Pointer[T any](v T) *T

func SortedKeys

func SortedKeys[K constraints.Ordered, T any](data map[K]T) (result []K)

func SortedValues

func SortedValues[K constraints.Ordered, V any](data map[K]V) (result []V)

func SortedValuesByKey

func SortedValuesByKey[K constraints.Ordered, T any](data map[K]T) (result []T)

func Tee

func Tee[T any](in <-chan T) (<-chan T, <-chan T)

Types

type Entry

type Entry[K, V any] struct {
	Key   K
	Value V
}

func Sorted

func Sorted[K constraints.Ordered, V any](data map[K]V) []Entry[K, V]

Jump to

Keyboard shortcuts

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