mirror of
https://github.com/duke-git/lancet.git
synced 2026-03-01 00:35:28 +08:00
feat: add ForEach, Reduce for stream
This commit is contained in:
@@ -34,7 +34,7 @@ import (
|
|||||||
// AnyMatch(predicate func(item T) bool) bool
|
// AnyMatch(predicate func(item T) bool) bool
|
||||||
// NoneMatch(predicate func(item T) bool) bool
|
// NoneMatch(predicate func(item T) bool) bool
|
||||||
// ForEach(consumer func(item T))
|
// 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
|
// Count() int
|
||||||
|
|
||||||
// FindFirst() (T, bool)
|
// FindFirst() (T, bool)
|
||||||
|
|||||||
Reference in New Issue
Block a user