Skip to content
Browse files

a few fixes for test.clj

 * make it executable
 * simplify the argument printing
  • Loading branch information...
1 parent 666ca34 commit 7a3e82074d6a9fca03160ca014bcaddcf007c2be @shaug shaug committed Jan 10, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 test.clj
View
5 test.clj 100644 → 100755
@@ -1,5 +1,6 @@
+#!/usr/bin/env clj
(println "Hello, Clojure!")
;; print out any command line arguments
(doall
- (map #(println (str "Arg #" (first %) ": " (last %)))
- (map vector (iterate inc 1) *command-line-args*)))
+ (map #(println (str "Arg #" %1 ": " %2))
+ (iterate inc 1) *command-line-args*))

0 comments on commit 7a3e820

Please sign in to comment.
Something went wrong with that request. Please try again.