immutable

package
v0.0.0-...-ba58dea Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SliceEqual

func SliceEqual[T comparable](a, b Slice[T]) bool

Types

type Slice

type Slice[T any] struct {
	// contains filtered or unexported fields
}

func SliceFrom

func SliceFrom[T any](values []T) Slice[T]

func (Slice[T]) Get

func (s Slice[T]) Get(idx int) (T, bool)

func (Slice[T]) Items

func (s Slice[T]) Items() iter.Seq2[int, T]

func (Slice[T]) Len

func (s Slice[T]) Len() int

func (Slice[T]) Slice

func (s Slice[T]) Slice() []T

func (Slice[T]) Values

func (s Slice[T]) Values() iter.Seq[T]

Jump to

Keyboard shortcuts

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