TraceContext.Value.restore.go: def of bend-trace-context@0.2.0.0 Import: import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext Lines 2099-2108 of bend-trace-context@0.2.0.0/trace_context.bend: https://jend.leeeet.dev/read.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&start_line=2099&end_line=2108 import Base # The restoring loop: one character at a time, with the state (whether a # character was kept yet, the value so far). def Value.restore.go(text: String, state: Bool & String) -> String: match text: case SNil{}: (kept, value) = state value case SCon{+char, tail}: (kept, value) = state Value.restore.go(tail, Value.restore.step(kept, StateChar.is_ows(char), char, value)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=StateChar.is_ows https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Value.restore.step