mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
feat: add EqualUnordered
This commit is contained in:
1 parent
1f64e02df4
commit
ab89f0aee1
5 files changed
+120
No files matched your search
@@ -1300,3 +1300,15 @@ func ExampleConcatBy() {
|
||||
// Alice | Bob | Charlie
|
||||
// 90
|
||||
}
|
||||
|
||||
func ExampleEqualUnordered() {
|
||||
result1 := EqualUnordered([]int{1, 2, 3}, []int{3, 2, 1})
|
||||
result2 := EqualUnordered([]int{1, 2, 3}, []int{4, 5, 6})
|
||||
|
||||
fmt.Println(result1)
|
||||
fmt.Println(result2)
|
||||
|
||||
// Output:
|
||||
// true
|
||||
// false
|
||||
}
|
||||
Reference in new issue
Block a user