def allocate_at
import bendtorch-core@0.1.0.0/src/storage/main.bend as BendtorchCoreimport Base
40def allocate_at(+n: Nat, value: F32, metadata: Nat & Nat) -> Result<&2, &1, Error, Storage>:
41 (d0, capacity) = metadata
42 +d = d0
43 allocate(d, n, value, bounds(d, n), {==})