def rate_refusals
import bendtorch-core@0.1.0.0/src/autograd/sgd_LAWS.bend as SgdLAWSimport Base
import bendtorch-core@0.1.0.0/src/autograd/sgd.bend as Sgd
177def rate_refusals(words: List<&2, U32>) -> List<&2, Maybe<&2, Sgd.Error>>:
178 match words:
179 case Nil{}:
180 Nil{}
181 case Con{word, rest}:
182 Sgd.rate_refusal(from_bits(word)) <> rate_refusals(rest)