slice

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Last

func Last[E any](s []E) (E, bool)

func NotIn

func NotIn[T comparable](input T, candidates []T) bool

func OneOf

func OneOf[T comparable](input T, candidates []T) bool

Types

type Slice

type Slice[T cmp.Ordered] []T

func (Slice[T]) Len

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

func (Slice[T]) Less

func (s Slice[T]) Less(i, j int) bool

func (Slice[T]) Swap

func (s Slice[T]) Swap(i, j int)

Jump to

Keyboard shortcuts

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