def cookie.pairs.keep

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

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

287# keep name=value when the name is not empty
288def cookie.pairs.keep(name: String, value: String, empty: Bool,
289  rest: Unit -> List<&2, String>) -> List<&2, String>:
290  match empty:
291    case True{}:
292      rest(Unit{})
293    case False{}:
294      (name ++ "=" ++ value) <> rest(Unit{})

Uses (5)

Used by (1)