def of_string
import bend-osdev-bytes@0.1.1.0/bytes.bend as Bytesimport Base
208def of_string(s: String) -> List<&2, U32>:
209 match s:
210 case SNil{}:
211 Nil{}
212 case SCon{Chr{c}, t}:
213 Con{byte(c), of_string(t)}
import bend-osdev-bytes@0.1.1.0/bytes.bend as Bytesimport Base
208def of_string(s: String) -> List<&2, U32>:
209 match s:
210 case SNil{}:
211 Nil{}
212 case SCon{Chr{c}, t}:
213 Con{byte(c), of_string(t)}