4 ;; clojure has a slightly different notation compared to Scheme for the
5 ;; arbitraty number of argument notation.
6 (defn same-parity [x & xs]
7 (cons x (filter (fn [y] (if (even? x)
12 (deftest test-same-parity
14 (same-parity 1 2 3 4 5 6 7) (list 1 3 5 7)
15 (same-parity 2 3 4 5 6 7) (list 2 4 6)))