package
Version:
v0.0.5
Opens a new window with list of versions in this module.
Published: Apr 30, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Copy[T any](input []T) (out []T)
Copy copies a slice
func ForEach[T any](input []T, fn func(index int, elem T))
func Map[I, O any](input []I, fn func(index int, elem I) O) (out []O)
Map maps a slice to another type.
out will be a new slice.
If fn == nil, nil is returned, otherwise len(out) == len(a).
func Reverse[T any](input []T) []T
Reverse reverses input in place, returning input.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.