Someone could explain me why i'm having this problem?
MBP-de-Thalys:~ thalys$ lein repl
nREPL server started on port 61763 on host 127.0.0.1 -
nrepl://127.0.0.1:61763
REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_102-b14
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
user=> (defn ^long integer-sum-to [^long n]
#_=> (loop [i 1 sum 0]
#_=> (if (<= i n)
#_=> (recur (inc i) (+ i sum))
#_=> sum)))
#'user/integer-sum-to
user=> (dotimes [_ 5] (time (integer-sum-to 10000)))
AbstractMethodError Method
user$integer_sum_to.invokePrim(J)Ljava/lang/Object; is abstract
user/integer-sum-to (form-init3907513459711515269.clj:-1)
user=>
Thanks
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.