Lines Matching refs:d
133 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
135 if (z == 0 and d == 1) or (z == 1 and d == -1):
137 z += d
151 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
153 if (z == 1 and d == 1) or (z == 2 and d == -1):
155 z += 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
190 for _, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
192 if (z == 1 and d == 1) or (z == 2 and d == -1):
194 z += d
231 for p, d in heapq.merge(zip(self.data, itertools.cycle((-5, +5))),
233 if d == -5:
235 elif d == +5: