def reverse_words_go
import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layoutimport Base
263def reverse_words_go(values: List<&2, U32>, accumulator: List<&2, U32>) -> List<&2, U32>:
264 match values:
265 case Nil{}:
266 accumulator
267 case head <> tail:
268 reverse_words_go(tail, head <> accumulator)