def cookie.up

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

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

1924# A reversed path with its last segment and slash dropped.
1925def cookie.up(rs: String) -> String:
1926  match rs:
1927    case SNil{}:
1928      SNil{}
1929    case SCon{Chr{47}, t}:
1930      t
1931    case SCon{Chr{c}, t}:
1932      cookie.up(t)

Uses (6)

Used by (1)