Last active
August 14, 2017 11:46
-
-
Save Arnot/8a952dbc66d38bf726c5dfa3b0cbd02b 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
| (defmacro not-equal (&rest rest) | |
| (let ((form '()) | |
| (prev (pop rest))) | |
| (while rest | |
| (dolist (cur rest) | |
| (push `(/= ,prev ,cur) form)) | |
| (setf prev (pop rest))) | |
| `(or ,@form))) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the same as (not (= ...)), so probably not worth the n! expansions..