def sample

bend-osdev-array@0.1.0.1 · check.bend:16

import bend-osdev-array@0.1.0.1/check.bend as Check
import Base

16# a depth-3 array (8 slots) with slots 1, 5 and 6 written (14 wraps to 6)
17def sample() -> Array<U32>:
18  a = Array.new(U32, 3n, 0)
19  a = Array.set(U32, a, 1, 10)
20  a = Array.set(U32, a, 5, 50)
21  Array.set(U32, a, 14, 60)

Uses (4)

Used by (1)