Created
April 17, 2012 17:49
-
-
Save gigamonkey/2407771 to your computer and use it in GitHub Desktop.
This file contains 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
(defun one-apart-p (w1 w2) | |
(and (eql (length w1) (length w2)) | |
(= 1 (loop | |
for c1 across w1 | |
for c2 across w2 | |
count (not (eql c1 c2)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment