def insert_before
import unified-nsga-iii@0.2.2.0/survival.bend as Survivalimport Base
884def insert_before(acc: List<&2, Bag>, +b: Bag) -> Bool:
885 match acc:
886 case Nil{}:
887 True{}
888 case +h <> _:
889 Nat.is_le(head_pos(b), head_pos(h))