TraceContext.Value.restore.step: def of bend-trace-context@0.2.0.0 Import: import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext Lines 2085-2097 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=2085&end_line=2097 import Base # A value's characters arrive most recent first. Restoring them skips optional # whitespace until the first other character, then keeps every character, so # the value comes back in reading order without its trailing whitespace. def Value.restore.step(kept: Bool, ows: Bool, char: Char, value: String) -> Bool & String: match kept: case True{}: (True{}, SCon{char, value}) case False{}: match ows: case True{}: (False{}, value) case False{}: (True{}, SCon{char, value}) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char 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