Tin

Examples · namespaces · 329 of 339

base

Imported with import "./base.tin" as base.

examples/namespaces/base.tintin run examples/namespaces/base.tin
// Imported with `import "./base.tin" as base`. It also has a Joint and an overLimit:
// in their own namespaces the two files cannot clash.

type Joint = { name: string, turns: int }

fn overLimit(joints: Joint[]): string[] => joints.filter(j => j.turns > 3).map(j => j.name)