TraceContext.StateValue.valid.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 1776-1787 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=1776&end_line=1787 import Base # `char` is a value character followed by `tail`, of which at most `room` # characters are allowed; the last character is not a space. def StateValue.valid.go(tail: String, char: Char, room: Nat) -> Bool: match tail: case SNil{}: StateChar.is_value_end(char) case SCon{next, rest}: match room: case 0n: False{} case 1n+left: Bool.and(StateChar.is_value(char), StateValue.valid.go(rest, next, left)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat 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_value https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=StateChar.is_value_end