1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-08 22:52:29 +08:00

doc: add go playground demo

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

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)