diff --git a/README.md b/README.md index d585cc3..e22d2e4 100644 --- a/README.md +++ b/README.md @@ -1477,6 +1477,9 @@ import "github.com/duke-git/lancet/v2/slice" - **EqualWith** : checks if two slices are equal with comparator func. [[doc](https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/slice.md#EqualWith)] [[play](https://go.dev/play/p/b9iygtgsHI1)] +- **EqualUnordered** : Checks if two slices are equal: the same length and all elements value are equal (unordered). + [[doc](https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/slice.md#EqualUnordered)] + [[play](todo)] - **Every** : return true if all of the values in the slice pass the predicate function. [[doc](https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/slice.md#Every)] [[play](https://go.dev/play/p/R8U6Sl-j8cD)] diff --git a/README_zh-CN.md b/README_zh-CN.md index 4dea046..de7f0f4 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -1475,6 +1475,9 @@ import "github.com/duke-git/lancet/v2/slice" - **EqualWith** : 检查两个切片是否相等,相等条件:对两个切片的元素调用比较函数 comparator,返回 true。 [[doc](https://github.com/duke-git/lancet/blob/main/docs/api/packages/slice.md#EqualWith)] [[play](https://go.dev/play/p/b9iygtgsHI1)] +- **EqualUnordered** : 检查两个切片是否相等,元素数量相同,值相等,不考虑元素顺序。 + [[doc](https://github.com/duke-git/lancet/blob/main/docs/api/packages/slice.md#EqualUnordered)] + [[play](todo)] - **Every** : 如果切片中的所有值都通过谓词函数,则返回 true。 [[doc](https://github.com/duke-git/lancet/blob/main/docs/api/packages/slice.md#Every)] [[play](https://go.dev/play/p/R8U6Sl-j8cD)] diff --git a/docs/en/api/packages/slice.md b/docs/en/api/packages/slice.md index 9f9d092..c842b78 100644 --- a/docs/en/api/packages/slice.md +++ b/docs/en/api/packages/slice.md @@ -844,7 +844,7 @@ func main() { ### EqualUnordered -

Checks if two slices are equal: the same length and all elements' value are equal (unordered).

+

Checks if two slices are equal: the same length and all elements value are equal (unordered).

Signature: