We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91ec757 commit 28b5d02Copy full SHA for 28b5d02
25.clj
@@ -0,0 +1,14 @@
1
+;; Title: Find the odd numbers
2
+;; Link: http://www.4clojure.com/problem/25
3
+;; Description: Write a function which returns only the odd numbers from a sequence.
4
+
5
+;; QUESTION/TEST CODE
6
7
+(= (__ #{1 2 3 4 5}) '(1 3 5))
8
+(= (__ [4 2 1 6]) '(1))
9
+(= (__ [2 2 4 6]) '())
10
+(= (__ [1 1 1 3]) '(1 1 1 3))
11
12
+;; SOLUTION CODE
13
14
+#(filter odd? %)
0 commit comments