a41f938cec
As we have seen, dependencies version can prevent the build. We should user lock versions on dependencies that we know work: * Packages are vendored * Add Godep support * Added addtional install step in readme * Fix travis build error
14 lignes
239 o
Go
14 lignes
239 o
Go
package iter
|
|
|
|
type map_ struct {
|
|
Iterator
|
|
f func(interface{}) interface{}
|
|
}
|
|
|
|
func (me map_) Value() interface{} {
|
|
return me.f(me.Iterator.Value())
|
|
}
|
|
|
|
func Map(i Iterator, f func(interface{}) interface{}) Iterator {
|
|
return map_{i, f}
|
|
}
|