def encode
import bend-ml-bpe-tokenizer@0.1.3.0/main.bend as BendMlBpeTokenizerimport Base
82# The table goes from the oldest rule to the newest (like merges.txt).
83def encode(+table: List<&2, Rule>, xs: List<&2, Tk>) -> List<&2, Tk>:
84 encode.go(table, Nil{}, xs)