Content deleted Content added
Cybercobra (talk | contribs) Reverted 1 edit by 113.193.163.78 (talk): Probable vandalism. (TW) |
|||
Line 42:
Gender::= male | female.
person <˜ {dayOfBirth:[]=>day.
age:[]=>integer.
gender:[]=>Gender.
name:[]=>string.
home:[]=>string.
lives:[string]{}}.
person:[string,day,Gender,string]$=person.
person(Nm,Born,Sx,Hm)..{
dayOfBirth(
age() => yearsBetween(now(),Born).
gender()=>Sx.
name()=>Nm.
home()=>Hm.
lives(Pl) :- Pl=home().
yearsBetween:[integer,day]=>integer.
yearsBetween(...) => ..
}.
|