(firstOfRun, lastOfRun int)
| 1236 | } |
| 1237 | |
| 1238 | func newArrayContainerRange(firstOfRun, lastOfRun int) *arrayContainer { |
| 1239 | valuesInRange := lastOfRun - firstOfRun + 1 |
| 1240 | this := newArrayContainerCapacity(valuesInRange) |
| 1241 | for i := 0; i < valuesInRange; i++ { |
| 1242 | this.content = append(this.content, uint16(firstOfRun+i)) |
| 1243 | } |
| 1244 | return this |
| 1245 | } |
| 1246 | |
| 1247 | func (ac *arrayContainer) numberOfRuns() (nr int) { |
| 1248 | n := len(ac.content) |
searching dependent graphs…