Skip to content

Commit 3500995

Browse files
authored
Create 5.clj
1 parent 680d0b3 commit 3500995

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

5.clj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
;; Title: Lists: conj
2+
;; Link: http://www.4clojure.com/problem/5
3+
;; Description: When operating on a list, the conj function will return a new list with one or more items "added" to the front. Note that there are two test cases, but you are expected to supply only one answer, which will cause all the tests to pass.
4+
5+
;; QUESTION/TEST CODE
6+
7+
; (= __ (conj '(2 3 4) 1))
8+
; (= __ (conj '(3 4) 2 1))
9+
10+
;; SOLUTION CODE
11+
12+
(list 1 2 3 4)

0 commit comments

Comments
 (0)