-
-
Save swannodette/862975 to your computer and use it in GitHub Desktop.
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
(defn-e nth-o [n l o] | |
((1 (?a . ?d) a)) | |
((_ (?a . ?d) _) (nth-o (dec n) d o))) |
@fogus Pick away :) It's the pattern matching syntax that I plan on implementing in the near future to make it easier to map Prolog programs to their miniKanren cousins.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would love to pick your brain on this one day.