Re: Toying around with REPL: java.lang.IndexOutOfBoundsException

2010-02-15 Thread Matthias von Rohr
Yep, you're right, I just debugged it and its an int overflow (nth gets called with a parameter int n=-279969792) Matt -- 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 Note that posts from

Re: Toying around with REPL: java.lang.IndexOutOfBoundsException

2010-02-15 Thread Michał Marczyk
nth is internally defined as the nth static method of the class clojure.lang.RT. That method takes an argument of type int as the index, whereas the huge index you supplied doesn't fit in an int and is normally a BigInteger. I guess that when you pass that to a Java method which expects an int, it

Re: Toying around with REPL: java.lang.IndexOutOfBoundsException

2010-02-15 Thread Meikel Brandmeyer
Hi, On Feb 15, 9:10 am, Matthias von Rohr wrote: > I'm fairly new to clojure but having a great time right now with this > beautiful language. I've been toying around with the REPL this > morning: > > http://paste.lisp.org/display/94972 > > Now the question arises, am I missing the point or is t