Permalink
Browse files

Ex 2 complete

  • Loading branch information...
andyw8 committed Aug 19, 2012
1 parent 1212e21 commit a0ede655f2f3725435f9b38ba4526d8aef333e2e
Showing with 7 additions and 0 deletions.
  1. +7 −0 ex-2.clj
View
@@ -0,0 +1,7 @@
+(def second (fn [list] (first (rest list))))
+
+(def third-a (fn [list] (first (rest (rest list)))))
+(def third-b (fn [list] (second (rest list))))
+
+(print (third-a '(5 4 3 2 1)))
+(print (third-b '(5 4 3 2 1)))

0 comments on commit a0ede65

Please sign in to comment.