def cookie.fold

emerging-ezhttp@0.21.0.0 · src/cookie.bend:201

import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookie
import Base

201# walk attributes. The list is the shrinking argument.
202def cookie.fold(ps: List<&2, String>, c: Cookie) -> Cookie:
203  match ps:
204    case []:
205      c
206    case h <> t:
207      cookie.fold(t, cookie.apply(c, String.trim(h)))

Uses (5)

Used by (1)