def Generation.fed
bend-trace-context@0.2.0.0 · trace_context.bend:1435
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext
import Base
1435
1436
1437def Generation.fed(fuel: Nat, step: Step, word: Result<&1, &1, U32 & String, U32>) -> Generation:
1438 match fuel step:
1439 case 0n other:
1440 Generation{0n, other}
1441 case 1n+p NeedWord{draw}:
1442 Generation{p, Draw.feed(word, draw)}
1443 case 1n+p Created{context}:
1444 Generation{0n, Created{context}}
1445 case 1n+p Failed{error}:
1446 Generation{0n, Failed{error}}