def init

bend-collections-laws-crypto@1.0.0.0 · proofs/lib/lemmas/src/cache.bend:12

import bend-collections-laws-crypto@1.0.0.0/proofs/lib/lemmas/src/cache.bend as Cache
import Base
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/lemmas/types/model.bend as T

12def init(-K: Data, -V: Data, capacity: Nat) -> Cache<K, V>:
13  State{capacity, Map.new(&2, Maybe<&2, T.Entry<K, V>>), Nil{}, T.I64{Word.zero(64n)}, T.zero_metrics(), False{}}

Uses (10)

Used by (3)