//
pkg.gl
Category
github.com/hackborn/onefunc
slices
package
0.0.0-20241212192544-4710020385f1
Repository:
https://github.com/hackborn/onefunc.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
0
Dependents
1
Files
17 SLOC
#
Functions
ArrayFrom
ArrayFrom takes a slice and a function and answers a new slice based on evaluating the function for each member of the incoming slice.
SetLen
SetLen returns a slice with the given length, reusing the supplied slice if it has enough capacity.