def enc_l
import bendtorch@1.3.0.0/dtype.bend as Dtypeimport Base
193def enc_l(~f: F32 -> U32, xs: List<&2, F32>) -> List<&2, U32>:
194 match xs:
195 case Nil{}:
196 Nil{}
197 case Con{h, t}:
198 f(h) <> enc_l(~f, t)
import bendtorch@1.3.0.0/dtype.bend as Dtypeimport Base
193def enc_l(~f: F32 -> U32, xs: List<&2, F32>) -> List<&2, U32>:
194 match xs:
195 case Nil{}:
196 Nil{}
197 case Con{h, t}:
198 f(h) <> enc_l(~f, t)