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

feat: add ForEach, Reduce for stream

This commit is contained in:
dudaodong
2023-02-06 17:40:54 +08:00
parent 09a379ec6d
commit 71b27c0aa9

View File

@@ -34,7 +34,7 @@ import (
// AnyMatch(predicate func(item T) bool) bool
// NoneMatch(predicate func(item T) bool) bool
// ForEach(consumer func(item T))
// Reduce(accumulator func(a, b T) T) T
// Reduce(init T, accumulator func(a, b T) T) T
// Count() int
// FindFirst() (T, bool)