def cookie.fold
import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookieimport 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)))