Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SegmentKeys ¶
func SegmentKeys[T comparable, S any, R any](mapA map[T]S, mapB map[T]R) (intersect, diffAB, diffBA []T)
SegmentKeys takes two maps with keys of the same type and returns three slices (with *no guaranteed order*): - the keys common across both maps - the keys present in the first set but not the second - the keys present in the second set but not the first
Types ¶
Click to show internal directories.
Click to hide internal directories.