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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user