Insert Elements

Checks whether two slices have the same elements in the same order, allowing you to define the equality logic.

Checking whether two slices are equal:


slices.EqualFunc(
    []int{1, 2},
    []int{1, 3},
    func(a, b int) bool { return a == b },
)   
                        
introduction.go