builtup4/bu4/toolchain/sync.py
2021-07-24 02:34:37 +03:00

9 lines
224 B
Python

from bu4.evaluation.aftervalue import Evaluable, EValue
def sync(evaluable: Evaluable) -> EValue:
while True:
if isinstance(evaluable, EValue):
return evaluable
evaluable = evaluable.next()