Created
April 27, 2017 13:11
-
-
Save ceving/45c672ab094ad55f1e08841d00198c8d 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
(define (match a b) | |
(and (= (length a) | |
(length b)) | |
(= (apply + a) | |
(apply + b)))) | |
(match '(1 4) '(2 3)) ; => #t | |
(match '(1 2) '(3 4)) ; => #f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment