diff options
-rw-r--r-- | src/lib/container/iterable.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/container/iterable.go b/src/lib/container/iterable.go index 61c744c01..bdcce11d0 100644 --- a/src/lib/container/iterable.go +++ b/src/lib/container/iterable.go @@ -79,8 +79,9 @@ func Find(iter Iterable, f func(interface {}) bool) interface {} { return nil } -// An injector function takes two arguments, an accumulated value and an -// element, and returns the next accumulated value. See the Inject function. +// Injector is a type representing a function that takes two arguments, +// an accumulated value and an element, and returns the next accumulated value. +// See the Inject function. type Injector func(interface {}, interface {}) interface{}; // Inject combines the elements of iter by repeatedly calling f with an |