Cli.by_distance: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 5747-5753 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=5747&end_line=5753 import Base def by_distance(levels: Nat, +d: Nat, +found: List<&2, Scored>) -> List<&2, String>: match levels: case 0n: Nil{} case 1n+more: List.append(&2, String, at_distance(found, d), by_distance(more, (d + 1n : Nat), found)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append 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 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Scored https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=at_distance