def cookie.date.tokens

bend-kit-http@0.38.2.0 · http.bend:1967

import bend-kit-http@0.38.2.0/http.bend as Http
import Base

1967# The date-tokens, last first. st: the token so far (reversed) and the tokens before it.
1968def cookie.date.tokens(s: String, st: String & List<&2, String>) -> List<&2, String>:
1969  match s:
1970    case SNil{}:
1971      (acc, ts) = st
1972      cookie.date.push(acc, ts)
1973    case SCon{Chr{+c}, t}:
1974      (acc, ts) = st
1975      cookie.date.tokens(t, cookie.date.step(cookie.date.delim(c), c, acc, ts))

Uses (8)

Used by (1)