diff --git a/src/kyupy/circuit.py b/src/kyupy/circuit.py index b1107f6..b3fd272 100644 --- a/src/kyupy/circuit.py +++ b/src/kyupy/circuit.py @@ -40,6 +40,11 @@ class GrowingList(list): self.has_nones = fi < len(self) return fi + def without_nones(self): + for item in self: + if item is not None: + yield item + class IndexList(list): def __delitem__(self, index):