#clojure logs

2008-03-12

16:07ChouserIs there a way to test if something is a set?
16:11Chouser(instance? clojure.lang.IPersistentSet x) I guess
18:53hoeckhi
18:53rhickeyhey
18:53hoecki have a problem with hash-map
18:54hoeck(hash-map ..) with 10 :key val arguments returns a hash map on the repl
18:54hoeckbut (let [a (hash-map ..)] a) throws an exception
18:55hoeckbut only if there are 10 or more key val args to hash-map
18:55rhickeywhat exception?
18:55hoeckjava.lang.VerifyError
18:56rhickeyI'll look into it
18:56hoecki was just trying to init a big struct map
18:56hoeckgreat, thanks!
18:57hoeckbtw, (let [a (apply hash-map (list key val ..))] a) works with more than 9 keyval args
18:59rhickeyI'm sure you are bumping up against the positional arg limit (20), and the codegen is screwy
19:01hoeckso i have to use apply and a list?
19:02rhickeyI have to look at it
19:03rhickeythe limit should just be on defining fns with more than 20 params, not on calling fns with more than 20 args
19:41hoeckbye