Discover Packages
github.com/llm-d/llm-d-kv-cache-manager
pkg
utils
package
Version:
v0.3.1
Opens a new window with list of versions in this module.
Published: Sep 25, 2025
License: Apache-2.0
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
¶
func SliceMap[Domain, Range any ](slice []Domain, fn func(Domain) Range) []Range
SliceMap applies a function to each element of a slice and returns a new
slice with the results.
func SliceMapE[Domain, Range any ](slice []Domain, fn func(Domain) (Range, error )) ([]Range, error )
SliceMapE applies a function to each element of a slice and returns a new
slice with the results. If an error occurs during the loop, it will be
interrupted and the error will be returned.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.