mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
refactor: change function name EqualWithFunc to EqualWith
This commit is contained in:
1 parent
bf49db60d9
commit
d21c101caf
2 files changed
+5
-5
No files matched your search
+2
-2
@@ -162,8 +162,8 @@ func Equal[T comparable](slice1, slice2 []T) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// EqualWithFunc checks if two slices are equal with comparator func
|
||||
func EqualWithFunc[T, U any](slice1 []T, slice2 []U, comparator func(T, U) bool) bool {
|
||||
// EqualWith checks if two slices are equal with comparator func
|
||||
func EqualWith[T, U any](slice1 []T, slice2 []U, comparator func(T, U) bool) bool {
|
||||
if len(slice1) != len(slice2) {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user