M type_stack_calc/ib/scope.py => type_stack_calc/ib/scope.py +1 -2
@@ 10,8 10,7 @@ from type_stack_calc.base.named import Named
from type_stack_calc.base.component import BaseComponent, BaseComponentSet
from type_stack_calc.ib.plain_component import PlainComponent
-def do_all(gen):
- for _e in gen: pass
+from type_stack_calc.util.various import do_all
class ScopeVariableSet(BaseComponentSet): pass
M type_stack_calc/intro/load.py => type_stack_calc/intro/load.py +1 -2
@@ 6,8 6,7 @@ from type_stack_calc.sc_parser import parser
from type_stack_calc.intro import intro
from type_stack_calc.ib.scope import scopify
-def do_all(gen):
- for _e in gen: pass
+from type_stack_calc.util.various import do_all
class LoadCall(dict):
def __repr__(self): return "LoadCall{a dict}}"
M type_stack_calc/util/various.py => type_stack_calc/util/various.py +4 -0
@@ 1,4 1,8 @@
+def do_all(gen):
+ """Exhaust the values, do nothing with them."""
+ for _e in gen: pass
+
def ignore(_x): pass
def first_or_none(gen, alt=None):