def to_string
import bend-osdev-bytes@0.1.1.0/bytes.bend as Bytesimport Base
215def to_string(xs: List<&2, U32>) -> String:
216 match xs:
217 case Nil{}:
218 SNil{}
219 case Con{h, t}:
220 SCon{Chr{byte(h)}, to_string(t)}
import bend-osdev-bytes@0.1.1.0/bytes.bend as Bytesimport Base
215def to_string(xs: List<&2, U32>) -> String:
216 match xs:
217 case Nil{}:
218 SNil{}
219 case Con{h, t}:
220 SCon{Chr{byte(h)}, to_string(t)}