def parse.split
import bend-kit-jwt@0.11.0.1/jwt.bend as Jwtimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
280def parse.split(xs: List<&2, String>) -> Result<&1, &1, Err, Parts>:
281 match xs:
282 case Con{+h, Con{+c, Con{+s, Nil{}}}}:
283 parse.segs(unb64u(h), unb64u(c), unb64u(s), Bytes.from_string(h ++ "." ++ c))
284 case _:
285 Fail{Malformed{}}