def resize

bend-collections@1.0.0.0 · src/containers/lru.bend:774

import bend-collections@1.0.0.0/src/containers/lru.bend as Lru
import Base

774# Set a positive capacity, evicting the oldest entries until the cache fits;
775# reports how many were evicted. Capacity 0 fails and changes nothing.
776def resize(a, -V: Kind(a), f: LRU<a, V>, +cap: U32) -> LRU<a, V> & Result<&2, &2, String, U32>:
777  resize_go(a, V, f, cap, U32.is_eq(cap, 0))

Uses (7)

Used by (0)

No other definition uses this definition.