-
-
Save livecode-bot/3503ea25b364bfc58c380e5a65309146 to your computer and use it in GitHub Desktop.
io.livecode.ch/learn/webyrd/webmk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define anyo | |
(lambda (g) | |
(conde | |
(g) | |
((anyo g))))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(fresh (x y z) (== x z) (== 3 y)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run* (q) | |
(let loop () | |
(conde | |
((== #f q)) | |
((== #t q)) | |
((loop))))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run* (q) | |
(conde | |
((anyo (== #f q))) | |
((== #t q)))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run 10 (q) | |
(anyo | |
(conde | |
((== 1 q)) | |
((== 2 q)) | |
((== 3 q))))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run 3 (q) | |
(let ((nevero (anyo (== #f #t)))) | |
(conde | |
((== 1 q)) | |
(nevero) | |
((conde | |
((== 2 q)) | |
(nevero) | |
((== 3 q))))))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run* (q) (symbolo q)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run* (q) | |
(symbolo q) | |
(== 4 q)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run* (q) | |
(symbolo q) | |
(numbero q)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run* (p) (=/= p 1)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run* (p) (=/= 1 p) (== 1 p)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run* (q) | |
(fresh (p r) | |
(=/= '(1 2) `(,p ,r)) | |
(== `(,p ,r) q))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run 1 (q) (fresh (x y z) (== x z) (== 3 y))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run* (q) | |
(fresh (p r) | |
(=/= '(1 2) `(,p ,r)) | |
(== 1 p) | |
(== `(,p ,r) q))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run* (q) | |
(fresh (p r) | |
(=/= '(1 2) `(,p ,r)) | |
(== 1 p) | |
(== 2 r) | |
(== `(,p ,r) q))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run* (q) | |
(fresh (x y) | |
(== `(jackal (,y leopard ,x)) q) | |
(absento 'panda q))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run* (q) | |
(fresh (x y) | |
(== `(jackal (,y leopard ,x)) q) | |
(absento 'panda q) | |
(== 'panda x))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run* (q) | |
(fresh (x y) | |
(== `(jackal (,y leopard ,x)) q) | |
(absento 'panda q) | |
(symbolo x))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run* (q) | |
(fresh (x y z) | |
(== `(jackal (,y leopard ,x)) q) | |
(absento 'panda q) | |
(symbolo x) | |
(== `(c ,z d) y) | |
(== 'panda z))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run 1 (q) (fresh (x y) (== x q) (== 3 y))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run 1 (y) | |
(fresh (x z) | |
(== x z) | |
(== 3 y))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run 1 (q) | |
(fresh (x z) | |
(== x z) | |
(== 3 z) | |
(== q x))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run 1 (y) | |
(fresh (x y) | |
(== 4 x) | |
(== x y)) | |
(== 3 y)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run 1 (x) (== 4 3)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run 1 (x) (== 5 x) (== 6 x)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run 2 (q) | |
(fresh (w x y) | |
(conde | |
((== `(,x ,w ,x) q) | |
(== y w)) | |
((== `(,w ,x ,w) q) | |
(== y w))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment