This commit is contained in:
yrsegal@gmail.com 2022-07-24 19:54:14 -04:00
parent 5201063d69
commit e404aa7c2e

View file

@ -146,7 +146,9 @@ sealed interface ContinuationFrame {
// If we still have data to process...
val (stackTop, newCont) = if (data.nonEmpty) {
// Push the next datum to the top of the stack,
// Increment the evaluation depth,
harness.ctx.incDepth()
// push the next datum to the top of the stack,
data.car to continuation
// put the next Thoth object back on the stack for the next Thoth cycle,
.pushFrame(ForEach(data.cdr, code, stack, acc))