xslices

package
v3.83.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff added in v3.75.1

func Diff[T any](from, to []T, cmp func(lhs, rhs T) int) (steady, added, dropped []T)

func Filter added in v3.75.1

func Filter[T any](in []T, filter func(t T) bool) (out []T)

func Map added in v3.75.1

func Map[Key comparable, T any](x []T, key func(t T) Key) map[Key]T

func SortCopy added in v3.75.1

func SortCopy[T any](in []T, cmp func(lhs, rhs T) int) (out []T)

func Split added in v3.76.0

func Split[T any](x []T, isOk func(t T) bool) (good, bad []T)

func Transform added in v3.75.1

func Transform[T1, T2 any](in []T1, f func(t T1) T2) (out []T2)

Types

This section is empty.

Jump to

Keyboard shortcuts

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