def events

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

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

62def events(-K: Data, -V: Data, cb: Bool, e: T.Entry<K, V>) -> List<&2, T.LruEvent<K, V>>:
63  match cb:
64    case False{}:
65      Nil{}
66    case True{}:
67      T.Item{k, v, d} = e
68      Con{T.Evicted{k, v}, Nil{}}

Uses (4)

Used by (1)