Last active
August 16, 2017 15:28
-
-
Save Arnot/274ad4d3216914a77ae41b1e9755e52a 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
(defun filter (&rest args) ; args = list of all arguments | |
(let ((factors (list -1 -1 -1 | |
-1 8 -1 | |
-1 -1 -1))) | |
(reduce '+ (mapcar* '* factors args)))) | |
(filter 10 20 30 40 50 60 70 80 90) | |
;; => 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment