def parse.split

bend-kit-jwt@0.11.0.1 · jwt.bend:280

import bend-kit-jwt@0.11.0.1/jwt.bend as Jwt
import 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{}}

Uses (9)

Used by (1)