TraceContext.Text.drop_ows.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 2766-2777 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=2766&end_line=2777 import Base # `head` followed by `tail`, without the optional whitespace at its start: # `ows` says whether `head` is optional whitespace. def Text.drop_ows.go(tail: String, head: Char, ows: Bool) -> String: match tail ows: case SNil{} False{}: SCon{head, SNil{}} case SCon{next, rest} False{}: SCon{head, SCon{next, rest}} case SNil{} True{}: SNil{} case SCon{+next, rest} True{}: Text.drop_ows.go(rest, next, StateChar.is_ows(next)) Uses (4): 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=String https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=StateChar.is_ows