kk_slice

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff[T comparable](old, new []T) (oldDel []T, newAdd []T)

Diff calculate the difference between two slices oldDel: item not exist in new slice newAdd: item not exist in old slice

func Intersect

func Intersect[T comparable](slice1, slice2 []T) []T

Intersect calculate the intersection of two slices

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL