Scan.insert.at: def of yaml-for-bend@0.1.1.0 Import: import yaml-for-bend@0.1.1.0/scan.bend as Scan Lines 585-594 of yaml-for-bend@0.1.1.0/scan.bend: https://jend.leeeet.dev/read.txt?path=yaml-for-bend@0.1.1.0/scan.bend&start_line=585&end_line=594 import Base import yaml-for-bend@0.1.1.0/token.bend as T def insert.at(d: Nat, out: List<&2, T.Token>, t: T.Token) -> List<&2, T.Token>: match d: case 0n: t <> out case 1n+k: match out: case Nil{}: [t] case Con{h, rest}: h <> insert.at(k, rest, t) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/token.bend&name=Token