Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Generic-swap/ACL2/generic-swap.acl2
Normal file
6
Task/Generic-swap/ACL2/generic-swap.acl2
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(defun swap (pair)
|
||||
(cons (cdr pair)
|
||||
(car pair)))
|
||||
|
||||
(let ((p (cons 1 2)))
|
||||
(cw "Before: ~x0~%After: ~x1~%" p (swap p)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue