def set_if

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

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

146def set_if(a: Array<U32>, +i: U32, +x: U32, skip: Bool) -> Array<U32>:
147  match skip:
148    case True{}:
149      a
150    case False{}:
151      Array.set(U32, a, i, x)

Uses (4)

Used by (2)