euler/lisp/euler.lisp

4 lines
159 B
Common Lisp

(defun range (min max) (loop for n from min below max by 1 collect n))
(defun sum (list) (apply '+ list))
(defun select (expr list) (remove-if-not expr list))