ViewPop¶
- class qugradlab.pulses.invertible_functions.packaging.ViewPop(iterator: Iterable)[source]¶
Bases:
objectA class that allows for a view of an iterable to be popped.
Example
>>> x = [1, 2, 3, 4, 5, 6] >>> v = ViewPop(x) >>> v(2) [1, 2] >>> v(2) [3, 4] >>> v(1) [5] >>> v(2) [6]