2
(Integer. "1") ; => 1
(map Integer. ["1" "2"])
; CompilerException java.lang.ClassNotFoundException: Integer., compiling:(/tmp/form-init6181502527198258116.clj:1:1) 

What am I doing wrong here or is there some kind of gotcha?

deadghost
  • 5,017
  • 3
  • 34
  • 46

1 Answers1

2

Integer. is the same as new Integer. You want:

(map #(Integer. %) ["1" "2"])
Diego Basch
  • 12,764
  • 2
  • 29
  • 24