slicex

package
v0.0.0-...-f9738e6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBoolSetOrdered

func ToBoolSetOrdered[E cmp.Ordered, S ~[]E](s S) map[E]bool

ToBoolSetOrdered converts a slice of ordered elements to a map where the keys are the slice elements and the values are all set to true. This effectively creates a set-like structure using a map.

func ToSetOrdered

func ToSetOrdered[E cmp.Ordered, S ~[]E](s S) map[E]struct{}

ToSetOrdered converts a slice of ordered elements to a set-like map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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