Documentation
¶
Overview ¶
Package container implements some routines for working with slices.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendUnique ¶ added in v0.11.0
func AppendUnique[T comparable](slice []T, item T) []T
func FindAndDelete ¶ added in v0.10.0
func FindAndDelete[T comparable](s []T, item T) []T
func GetIndex1 ¶
GetIndex1 returns the index (indexed from 1) of "value" or -1 if not found. Case-sensitive.
func UniqueAndSorted ¶
UniqueAndSorted returns the list "s" sorted with duplicates removed. Case-sensitive.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.