BendtorchCore.new_checked: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/storage/main.bend as BendtorchCore Lines 45-52 of bendtorch-core@0.1.0.0/src/storage/main.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/storage/main.bend&start_line=45&end_line=52 import Base def new_checked(+n: Nat, value: F32, allowed: Bool) -> Result<&2, &1, Error, Storage>: match n allowed: case 0n _: Done{Empty{}} case 1n+p False{}: Fail{TooLarge{}} case 1n+p True{}: allocate_at(n, value, depth_seek(20n, n, 0n, 1n, Nat.is_le(n, 1n))) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_le https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/main.bend&name=Error https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/main.bend&name=Storage https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/main.bend&name=allocate_at https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/main.bend&name=depth_seek