pair

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Pair data structure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeStrPairs

func MergeStrPairs[T any](p ...Pair[string, T]) map[string][]T

Merge StrPair into a map

Types

type Pair

type Pair[T any, V any] struct {
	Left  T
	Right V
}

Pair data structure

func New

func New[T any, V any](t T, v V) Pair[T, V]

Jump to

Keyboard shortcuts

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