slices

package
v0.0.0-...-b5df543 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

func Map[In, Out any](in []In, f func(In) (Out, bool)) []Out

Map applies a transformation function to each element of the input slice, returning a new slice containing the transformed elements for which the transformation function returns true. The transformation function should return a tuple of the transformed element and a boolean indicating whether the element should be included in the output slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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