doc: add go playground demo

This commit is contained in:
dudaodong committed 2023-09-11 15:59:35 +08:00
1 parent b38bb66b34
commit b698fec50f
10 files changed
+166 -112

No files matched your search

+1 -1
View File
@@ -1201,7 +1201,7 @@ func Join[T any](slice []T, separator string) string {
}
// Partition all slice elements with the evaluation of the given predicate functions.
// todo
// Play: https://go.dev/play/p/lkQ3Ri2NQhV
func Partition[T any](slice []T, predicates ...func(item T) bool) [][]T {
l := len(predicates)