Recurrence.ticks: def of bend-kit-scheduler@0.4.1.0 Import: import bend-kit-scheduler@0.4.1.0/recurrence.bend as Recurrence Lines 25-32 of bend-kit-scheduler@0.4.1.0/recurrence.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-scheduler@0.4.1.0/recurrence.bend&start_line=25&end_line=32 import Base # Generate only the bounded replay prefix, never the skipped remainder. def ticks(count: Nat, +previous: Nat, +period: Nat) -> List<&2, Nat>: match count: case 0n: Nil{} case 1n+n: +deadline = Nat.add(previous, period) Con{deadline, ticks(n, deadline, period)} 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=Base/base.bend&name=Nat.add