From 71b27c0aa9aedf21d5852ac7fad1393f813423d8 Mon Sep 17 00:00:00 2001 From: dudaodong Date: Mon, 6 Feb 2023 17:40:54 +0800 Subject: [PATCH] feat: add ForEach, Reduce for stream --- stream/stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream/stream.go b/stream/stream.go index eb707dc..b70c85e 100644 --- a/stream/stream.go +++ b/stream/stream.go @@ -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)