Next returns the next value and index
()
| 183 | |
| 184 | // Next returns the next value and index |
| 185 | func (it *FloatArrayIterator) Next() (idx int, value float64) { |
| 186 | if !it.hasValue { |
| 187 | return -1, 0 |
| 188 | } |
| 189 | idx = it.idx - 1 |
| 190 | value = it.fa.GetValue(idx) |
| 191 | return idx, value |
| 192 | } |