Lines Matching refs:d
170 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
172 if (z == 0 and d == 1) or (z == 1 and d == -1):
174 z += d
188 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
190 if (z == 1 and d == 1) or (z == 2 and d == -1):
192 z += d
207 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
209 if (z == 0 and d == 1) or (z == 1 and d == -1):
211 z += d
227 for _, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
229 if (z == 1 and d == 1) or (z == 2 and d == -1):
231 z += d
268 for p, d in heapq.merge(zip(self.data, itertools.cycle((-5, +5))),
270 if d == -5:
272 elif d == +5: