aboutsummaryrefslogtreecommitdiff
path: root/examples/namespaces.halk
blob: c8511be50df7137fb23475247895469462359e05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
:nsp:people = {
   ` Get a person's age at a specific year. `
   :int:get_age.:nsp:person,:int:year = -.year, person:birthyear
}

:nsp:john = {
   :int:birthyear = 2000;
   :str:name = "John Doe";
}

print.people:get_age.john;