package
1.0.1
Repository: https://github.com/apus-run/van.git
Documentation: pkg.go.dev

# Functions

Concat returns a new slice concatenating the passed in slices.
Diff returns, given two slices a and b sorted according to lessFunc, a slice of the elements occurring in a and b only, respectively.
Filter returns a slice containing all elements in `slice` for which the given `filter` func evaluates to true.
FromStringSlice returns a slice T from the given strings.
Map maps the elements of slice, using the given mapFunc Example usage: Map([]string{"a", "b", "cd"}, func(s string) int { return len(s) }) will return []int{1, 1, 2}.
NaturalSort sorts the given slice according to the natural ording of elements.
Reversed returns a slice that contains the elements of the input slice in reverse order.
Select returns a slice containing the elements at the given indices of the input slice.
ShallowClone2DSlice clones a 2D slice, creating a new slice and copying the contents of the underlying array.
StringSlice returns a sorted string slice from the given T.
Unique returns a new slice that contains only the first occurrence of each element in slice.
Without returns the slice of elements in the first slice that aren't in the second slice.