>    (if (l2)

The problem is on this line. (l2) is a function call.
Replace with (if l2
and it works fine :)

java.lang.IllegalArgumentException: Wrong number of args passed to:
LazilyPersistentVector (NO_SOURCE_FILE:0)

The error message bears a little explaining:
vectors are functions,
user=> ([1 2 3] 1)
2
here I called a a vector [1 2 3] with the argument 1, which gets the
element at 1
Hence where l2 is a vector in your case, (l2) is a function call but
no index argument was supplied.



--~--~---------~--~----~------------~-------~--~----~
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