diff options
| author | David Symonds <dsymonds@golang.org> | 2009-04-20 00:43:10 -0700 |
|---|---|---|
| committer | David Symonds <dsymonds@golang.org> | 2009-04-20 00:43:10 -0700 |
| commit | d88fb9f0f6863202b6926338df03030bd9b49031 (patch) | |
| tree | 0a3c0225c7adf57c2171ef3e2064c86973605376 /src/lib | |
| parent | dc5cffbeb7b697ae6b953507bab731c96075ea7a (diff) | |
| download | go-d88fb9f0f6863202b6926338df03030bd9b49031.tar.xz | |
Oops, forgot to commit this change.
R=r
APPROVED=r
DELTA=3 (1 added, 0 deleted, 2 changed)
OCL=27624
CL=27626
Diffstat (limited to 'src/lib')
| -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 61c744c01a..bdcce11d0a 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 |
