def word.body.go

emerging-eztoml@0.9.0.0 · main.bend:1288

import emerging-eztoml@0.9.0.0/main.bend as EmergingEztoml
import Base

1288# the spelling, reversed, then put back in order at the end
1289def word.body.go(cs: List<&2, Char>, lead: Bool, out: List<&2, Char>) -> List<&2, Char>:
1290  match cs:
1291    case []:
1292      List.reverse(&2, Char, out)
1293    case +c <> t:
1294      word.body.go(t, False{}, word.body.put(lead, c, out))

Uses (5)

Used by (1)