def gr.go
import bend-kit-unicode@0.1.0.0/unicode.bend as Unicodeimport Base
220def gr.go(s: String, z: Gr) -> List<&2, String>:
221 match s:
222 case SNil{}:
223 Gr{p, ri, ep, incb, cur, out} = z
224 List.reverse(&2, String, String.reverse(cur) <> out)
225 case SCon{Chr{+c}, t}:
226 gr.go(t, gr.step(z, c))