Examples · learn/13-modules/lib · 194 of 339
report
lib/report.tin: it uses Joint, so it imports joints.tin itself.
tin run examples/learn/13-modules/lib/report.tin// lib/report.tin: it uses Joint, so it imports joints.tin itself.
import "./joints.tin"
fn report(joints: Joint[]): string {
let bad = overLimit(joints)
if bad.isEmpty() { "no joint is over the limit" } else { "over the limit: {join(bad, ", ")}" }
}