container

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 1 Imported by: 0

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

func GetIndex1(value string, list []string) int

GetIndex1 returns the index (indexed from 1) of "value" or -1 if not found. Case-sensitive.

func UniqueAndSorted

func UniqueAndSorted(s []string) (list []string)

UniqueAndSorted returns the list "s" sorted with duplicates removed. Case-sensitive.

Types

This section is empty.

Jump to

Keyboard shortcuts

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