Parse.Parse.expect_char.s: def of bend-scanner@0.1.0.0 Import: import bend-scanner@0.1.0.0/parse.bend as Parse Lines 44-51 of bend-scanner@0.1.0.0/parse.bend: https://jend.leeeet.dev/read.txt?path=bend-scanner@0.1.0.0/parse.bend&start_line=44&end_line=51 import Base def Parse.expect_char.s( s: String, off: Nat, +want: Char ) -> Result<&2, &2, Parse.Error, Parse.Cur>: match s: case SNil{}: Fail{Eof{off}} case SCon{+h, t}: Parse.expect_char.eq(t, off, h, Char.is_eq(h, want)) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-scanner@0.1.0.0/parse.bend&name=Parse.Cur https://jend.leeeet.dev/definition.txt?path=bend-scanner@0.1.0.0/parse.bend&name=Parse.Error https://jend.leeeet.dev/definition.txt?path=bend-scanner@0.1.0.0/parse.bend&name=Parse.expect_char.eq