Lines Matching refs:d
132 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
134 if (z == 0 and d == 1) or (z == 1 and d == -1):
136 z += d
150 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
152 if (z == 1 and d == 1) or (z == 2 and d == -1):
154 z += d
169 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
171 if (z == 0 and d == 1) or (z == 1 and d == -1):
173 z += d
189 for _, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
191 if (z == 1 and d == 1) or (z == 2 and d == -1):
193 z += d
230 for p, d in heapq.merge(zip(self.data, itertools.cycle((-5, +5))),
232 if d == -5:
234 elif d == +5: