Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -1,9 +1,9 @@
|
|||
% Name/Age
|
||||
person_age('Jonah', 27).
|
||||
person_age('Alan', 18).
|
||||
person_age('Glory', 28).
|
||||
person_age('Popeye', 18).
|
||||
person_age('Alan', 28).
|
||||
% Name/Age
|
||||
person_age('Jonah', 27).
|
||||
person_age('Alan', 18).
|
||||
person_age('Glory', 28).
|
||||
person_age('Popeye', 18).
|
||||
person_age('Alan', 28).
|
||||
|
||||
% Character/Nemesis
|
||||
character_nemisis('Jonah', 'Whales').
|
||||
|
|
@ -13,8 +13,8 @@ character_nemisis('Alan', 'Zombies').
|
|||
character_nemisis('Glory', 'Buffy').
|
||||
|
||||
join_and_print :-
|
||||
format('Age\tName\tCharacter\tNemisis\n\n'),
|
||||
forall(
|
||||
(person_age(Person, Age), character_nemisis(Person, Nemesis)),
|
||||
format('~w\t~w\t~w\t\t~w\n', [Age, Person, Person, Nemesis])
|
||||
).
|
||||
format('Age\tName\tCharacter\tNemisis\n\n'),
|
||||
forall(
|
||||
(person_age(Person, Age), character_nemisis(Person, Nemesis)),
|
||||
format('~w\t~w\t~w\t\t~w\n', [Age, Person, Person, Nemesis])
|
||||
).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue