Check.out.at: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/check.bend as Check Lines 61-70 of bolt@1.27.0.0/src/check.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/check.bend&start_line=61&end_line=70 import Base # the error lines, then `clean` or the count, and the exit code: 1 when # there is any error def out.at(ls: List<&2, String>, count: Nat) -> Out: match count: case 0n: Out{List.append(&2, String, ls, ["clean"]), 0} case 1n: Out{List.append(&2, String, ls, ["1 error, 0 warnings"]), 1} case 2n+more: Out{List.append(&2, String, ls, [U32.show(U32.from_nat(2n+more)) ++ " errors, 0 warnings"]), 1} Uses (8): 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=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.from_nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.show https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/check.bend&name=Out