Documentation ¶
Overview ¶
Package sliceutil contains generic functions for working with slices. Use it to augment the std "slices" package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveCommonPrefix ¶
func RemoveCommonPrefix[T comparable](a, b []T) (newA, newB []T)
RemoveCommonPrefix removes the shared prefix from the two provided slices, returning what remains for each slice as the result.
func RemoveFunc ¶
RemoveFunc removes items matching the given function from the provided slice.
The original slice must not be used after this.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.