Discover Packages
github.com/autonomouskoi/datastruct
slices
package
Version:
v0.0.15
Opens a new window with list of versions in this module.
Published: Sep 23, 2025
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package slices provide utility functions for slices
func Map[T, U any ](in []T, fn func(T) U) []U
Map applies a function to a slice, returning a new slice of values returned
by fn
Matches calls fn on each value in in. Matches returns true the first time
fn returns true. It returns false if no member of in causes fn to return true
Source Files
¶
Click to show internal directories.
Click to hide internal directories.