Re: Odd exception on lazy sequence

2020-02-14 Thread KJO
OK. I got some super guidance from p-himik on the Slack channel (Thank you!). Essentially there was a TreeSet in one of the sets to be conj'ed and that was causing the exception. Apparently, it's not a trivial matter to conj tree-sets :-). -- You received this message because you are subscrib

Odd exception on lazy sequence

2020-02-14 Thread KJO
I'm stumped on this. I have a function that returns a lazy sequence (let's call it lzs - it's produced by another function, and for this exercise I def'd it in the REPL from `*1'). It's a sequence of maps. When I apply a merge-with operation to the lazy sequence. I get the following error. c

Re: type function returning a NullPointerException

2019-02-15 Thread KJO
ebruary 15, 2019 at 9:32:02 AM UTC-5, Alex Miller wrote: > > What's the stack trace when you get an NPE? (pst *e) > > Are you shadowing a core function with your own `count` or something like > that? > > On Friday, February 15, 2019 at 8:27:55 AM UTC-6, KJO wrote: >

type function returning a NullPointerException

2019-02-15 Thread KJO
Hi- This one has me stumped. The following code snippet throws a NullPointerException and I just can't understand how it could. (if (set? t-val) (println t-val (type t-val))) It seems that if it's a set, it should have a set type. If I change the code to (if (set? t-val) (println t-val (