def cut
import bend-ml-llama@0.2.1.0/main.bend as BendMlLlamaimport Base
834def cut(n: Nat, xs: List<&1, GW>, acc: List<&1, GW>) -> GS:
835 match n xs:
836 case 1n+m Con{x, xt}:
837 cut(m, xt, x <> acc)
838 case _ _:
839 GS{List.reverse(&1, GW, acc), xs}