def cookie.select.cons

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

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

525# cons when the cookie matches the request
526def cookie.select.cons(ok: Bool, c: Cookie, rest: Unit -> List<&2, Cookie>)
527  -> List<&2, Cookie>:
528  match ok:
529    case False{}:
530      rest(Unit{})
531    case True{}:
532      c <> rest(Unit{})

Uses (4)

Used by (1)