You need to do (into [] '(1 2 3)) otherwise it will be read as calling the
function 1 with arguments 2 and 3.

On Sun, Jan 18, 2009 at 3:56 PM, wubbie <sunj...@gmail.com> wrote:

>
> Hi,
>
> Why into does not work for second argument of list?
>
> user=> (into [] (1 2 3))
> java.lang.ClassCastException: java.lang.Integer cannot be cast to
> clojure.lang.IFn (NO_SOURCE_FILE:0)
> user=> (into [] [1 2 3])
> [1 2 3]
>
> thanks
> -Sun
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to