(cb func(x uint16) bool)
| 1112 | } |
| 1113 | |
| 1114 | func (rc *runContainer16) iterate(cb func(x uint16) bool) bool { |
| 1115 | iterator := runIterator16{rc, 0, 0} |
| 1116 | |
| 1117 | for iterator.hasNext() { |
| 1118 | if !cb(iterator.next()) { |
| 1119 | return false |
| 1120 | } |
| 1121 | } |
| 1122 | |
| 1123 | return true |
| 1124 | } |
| 1125 | |
| 1126 | // hasNext returns false if calling next will panic. It |
| 1127 | // returns true when there is at least one more value |