Instead of :
(if (s1)
You just want :
(if s1
s1 is a Long, not a function.
On Thu, Apr 2, 2015 at 8:56 AM michael zhuang
wrote:
> : i'm new to clojure, when I try to implementation 'interleave', get error
> from type convertion "java.lang。Long cannot be cast to clojure.lang.IFN".
> ; Now
: i'm new to clojure, when I try to implementation 'interleave', get error
from type convertion "java.lang。Long cannot be cast to clojure.lang.IFN".
; Now im reading stack trace, try to figure out what's going on..
(defn myIL [col1 col2]
(loop [m []
s1 (first col1)
s2 (fi