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
  • 4,737
  • 3
  • 31
  • 44

1 Answers1

2

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

(map #(Integer. %) ["1" "2"])
Diego Basch
  • 12,346
  • 2
  • 28
  • 23