def read
import bendtorch-core@0.1.0.0/src/tensor/permute_build.bend as PermuteBuildimport Base
123def read(+recipe: Recipe, +position: Nat, state: Array<F32> & Array<F32>) -> F32 & (Array<F32> & Array<F32>):
124 (a, b) = state
125 take(b, Array.get(F32, a, at(recipe, position)))