Registry / utility / leaanthony-slicer

leaanthony-slicer

JSON →
library1.6.0gogounverified

Provides utility classes for handling slices in Go, including filtering, mapping, and other operations.

go get github.com/leaanthony/slicer
INSTALL
IMPORT
SIG · LEAANTHONY-SLICER
L
leaanthony-slicer
utilitygov1.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

slicer
github.com/leaanthony/slicer

Filters a slice of integers to keep only even numbers.

package main import ( "fmt" "github.com/leaanthony/slicer" ) func main() { ints := slicer.Ints([]int{1, 2, 3, 4}) evens := ints.Filter(func(i int) bool { return i%2 == 0 }) fmt.Println(evens) // [2, 4] }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.6.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
leaanthony-slicer — go get leaanthony-slicer · libregistry