parent
b69adecc1d
commit
fa500795af
6 changed files with 1372 additions and 1169 deletions
|
@ -64,8 +64,8 @@ world:set(sara, Name, "sara")
|
|||
|
||||
print(getName(parent(sara)))
|
||||
|
||||
for e in world:query(pair(ChildOf, alice)) do
|
||||
print(getName(e), "is the child of alice")
|
||||
for e, name in world:query(Name, pair(ChildOf, alice)) do
|
||||
print(name, "is the child of alice")
|
||||
end
|
||||
|
||||
-- Output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue