Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ex 2 complete

  • Loading branch information...
commit a0ede655f2f3725435f9b38ba4526d8aef333e2e 1 parent 1212e21
@andyw8 authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 ex-2.clj
View
7 ex-2.clj
@@ -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)))
Please sign in to comment.
Something went wrong with that request. Please try again.