slice

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter[T any](in []T, fn func(T) bool) []T

Filter filters the input slice using the provided filter function.

func Map

func Map[In, Out any](in []In, fn func(In) Out) []Out

Map maps the input slice using the provided mapper function.

func Unique

func Unique[In ~[]T, T comparable](in In) []T

Unique returns a new slice containing the unique elements of the input slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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