List.replicate: def of Base Import: import Base Lines 1049-1054 of Base/base.bend: https://jend.leeeet.dev/read.txt?path=Base/base.bend&start_line=1049&end_line=1054 import Base def List.replicate(-A: Data, n: Nat, +x: A) -> List<&2, A>: match n: case 0n: Nil{} case 1n+p: x <> List.replicate(A, p, x) Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat