def encode.go
import bolt@1.27.0.0/src/lsp/frame.bend as Frameimport Base
84def encode.go(cs: List<&2, Char>) -> List<&2, U32>:
85 match cs:
86 case Nil{}:
87 Nil{}
88 case Con{c, t}:
89 encode.one(Char.to_u32(c), encode.go(t))
import bolt@1.27.0.0/src/lsp/frame.bend as Frameimport Base
84def encode.go(cs: List<&2, Char>) -> List<&2, U32>:
85 match cs:
86 case Nil{}:
87 Nil{}
88 case Con{c, t}:
89 encode.one(Char.to_u32(c), encode.go(t))