Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Generic-swap/Logtalk/generic-swap-1.logtalk
Normal file
6
Task/Generic-swap/Logtalk/generic-swap-1.logtalk
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
:- object(paws).
|
||||
|
||||
:- public(swap/4).
|
||||
swap(First, Second, Second, First).
|
||||
|
||||
:- end_object.
|
||||
8
Task/Generic-swap/Logtalk/generic-swap-2.logtalk
Normal file
8
Task/Generic-swap/Logtalk/generic-swap-2.logtalk
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
| ?- paws::swap(apples, oranges, X, Y).
|
||||
X = oranges
|
||||
Y = apples
|
||||
yes
|
||||
|
||||
| ?- paws::swap(3.14, ext(lgt), X, Y).
|
||||
X = ext(lgt)
|
||||
Y = 3.14
|
||||
Loading…
Add table
Add a link
Reference in a new issue