def resize_go

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

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

767def resize_go(a, -V: Kind(a), f: LRU<a, V>, +cap: U32, zero: Bool) -> LRU<a, V> & Result<&2, &2, String, U32>:
768  match zero:
769    case True{}:
770      (f, Fail{"capacity must be positive"})
771    case False{}:
772      rz_start(a, V, set_cap(a, V, f, cap))

Uses (9)

Used by (1)