conv

package
v0.0.0-...-b19cdf9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List[T1, T2 any](slice []T1, converter func(T1) T2) []T2

List converts a list of type T1 to a list of type T2.

func ToSet

func ToSet[T comparable](slice []T) map[T]struct{}

ToSet converts a slice to a set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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