def clear_metrics

bend-collections-laws-math@1.0.0.0 · proofs/lib/lemmas/src/cache.bend:248

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

248def clear_metrics(-K: Data, -V: Data, c: Cache<K, V>) -> Cache<K, V>:
249  State{cap, m, order, life, counts, cb} = c
250  State{cap, m, order, life, T.zero_metrics(), cb}

Uses (2)

Used by (1)