Re: Possible bug with (keys some-container) in a try-catch?

2016-04-23 Thread Steve Riley
t forced, so no errors. > > On 04/22/2016 01:28 PM, Steve Riley wrote: > > I am trying to determine if a container, x, passed to a function, is a > > map or not. > > > > If I evaluation (keys x) at a REPL prompt, and, x is instantiated list, > > vector or set

Possible bug with (keys some-container) in a try-catch?

2016-04-22 Thread Steve Riley
I am trying to determine if a container, x, passed to a function, is a map or not. If I evaluation (keys x) at a REPL prompt, and, x is instantiated list, vector or set, I will get a java.lang.ClassCastException that some item in x cannot be cast to java.util.Map$Entry. On the other hand, if I