def cache.fold

emerging-ezhttp@0.21.0.0 · src/cache.bend:123

import emerging-ezhttp@0.21.0.0/src/cache.bend as Cache
import Base

123# walk directives. The list shrinks.
124def cache.fold(ps: List<&2, String>, c: Cc) -> Cc:
125  match ps:
126    case []:
127      c
128    case h <> t:
129      cache.fold(t, cache.one(c, String.trim(h)))

Uses (5)

Used by (1)