def sample
import bend-osdev-array@0.1.0.1/check.bend as Checkimport 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)