Api.to_result: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/storage/api.bend as Api Lines 138-143 of bendtorch-core@0.1.0.0/src/storage/api.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/storage/api.bend&start_line=138&end_line=143 import Base import bendtorch-core@0.1.0.0/src/storage/main.bend as Storage def to_result(found: Maybe<&2, F32>) -> Result<&2, &2, Storage.Error, F32>: match found: case None{}: Fail{Storage.InvalidIndex{}} case Some{value}: Done{value} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe 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