sliceutil

package
v2.0.0-alpha.34 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter[T any](slice []T, filterFunc func(T) bool) []T

Filter - returns a slice containing only the elements that satisfy the predicate function filterFunc.

func Map

func Map[T any, M any](slice []T, mapFunc func(T) M) []M

Map - returns a new slice containing the results of applying the mapFunc to each element of the input slice.

func Unique

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

Unique - returns a cleaned up list, where every item is unique. Does NOT guarantee any ordering, the result can be in any order!

Types

This section is empty.

Jump to

Keyboard shortcuts

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