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
21 lignes
302 o
Go
21 lignes
302 o
Go
package roaring
|
|
|
|
type shortIterable interface {
|
|
hasNext() bool
|
|
next() uint16
|
|
}
|
|
|
|
type shortIterator struct {
|
|
slice []uint16
|
|
loc int
|
|
}
|
|
|
|
func (si *shortIterator) hasNext() bool {
|
|
return si.loc < len(si.slice)
|
|
}
|
|
|
|
func (si *shortIterator) next() uint16 {
|
|
a := si.slice[si.loc]
|
|
si.loc++
|
|
return a
|
|
}
|