run method
A
run()
Implementation
A run() {
Stackless<A> th = this;
while (true) {
ES<A> it = th.resume();
if (it case Left(value: Stackless<A> Function() valueLeft)) {
th = valueLeft(); // rec
} else if (it case Right(value: A valueRight)) {
return valueRight;
}
}
}