package
1.4.57
Repository: https://github.com/borderzero/border0-go.git
Documentation: pkg.go.dev

# README

slice

Go Report Card Documentation license

Simplifies slice operations in Go, with generics!

# Functions

Contains returns true if a slice contains an element.
CountWhere returns the number of elements in a slice that satisfy a given condition.
Diff finds the difference between two slices, `original` and `changed`.
Map takes a slice of a given type and a function to extract a map key and value from slice elements, returns a new map with those key-value pairs.
Transform takes a slice of a given type, and a function to perform on each element to transform it into a different type.