def train
import bend-ml-bpe-tokenizer@0.1.3.0/main.bend as BendMlBpeTokenizerimport Base
251# the table from the oldest rule to the newest
252def train(n: Nat, +next: Nat, +xs: List<&2, Tk>) -> List<&2, Rule>:
253 train.go(n, next, xs, best(count.go(xs, Nil{})))