Help us shape the future of Go! Take the 2026 Go Developer Survey

xslices

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package xslices holds slice helpers the standard slices package lacks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unique

func Unique[T comparable](items []T) []T

Unique returns items with duplicates removed, keeping the first occurrence of each value in its original order. The input is not modified.

Types

This section is empty.

Jump to

Keyboard shortcuts

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