In core.match, what's the difference between predicates (:when) and guards (:guard)?

2015-12-08 Thread retnuH
I can't really figure out what the deal is with predicates. They're not mentioned in the Basic/Advanced usage wiki pages at all. The code for Guards and Predicates is basically identical. The only difference that I've been able to find (beyond the spelling, obviously): - predicates can only

Re: mexpand on macrolet

2015-12-07 Thread retnuH
This worked for me (after some experimentation): (pprint (mexpand-1 '(symbol-macrolet [b (+ 1 2)] b))) ;; (do (+ 1 2)) ;; nil Cheers, H On Saturday, 5 December 2015 07:45:38 UTC, Ritchie Cai wrote: > > I'm not sure how to print a macroexpand on macros that defined in macrolet > or

reducers and sets/PersistentSet

2015-11-10 Thread retnuH
Hi there, I was playing with reducers recently, and was wondering why PersistentSets aren't foldable (i.e. don't take advantage of the Fork/Join stuff? Is there some fundamental reason why it wouldn't work (or is especially difficult), or just a case that no one has gotten around to

Re: reducers and sets/PersistentSet

2015-11-10 Thread retnuH
od, so in principle > doesn't seem like there's any reason that shouldn't work. > > On Tuesday, November 10, 2015 at 10:23:19 AM UTC-6, retnuH wrote: >> >> Hi there, I was playing with reducers recently, and was wondering why >> PersistentSets aren't foldable (i.e. don'

Strange error (to me) trying to use core.logic.fd

2015-01-20 Thread retnuH
, compiling:(I:\Users\retnuH\projects\clojure\stuff\src\whatevs.clj:15:19) at clojure.lang.Compiler.analyzeSeq(Compiler.java:6651) at clojure.lang.Compiler.analyze(Compiler.java:6445) at clojure.lang.Compiler.analyze(Compiler.java:6406) at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3719

Possible bug in reducer code? Or dead code? Or derp on my part?

2012-06-29 Thread retnuH
Hi there, I've been browsing through the code trying to wrap my head the new reducers library. I came across 2 functions called 'reduce' in APersistentVector.java around line 447. The don't have the same 'reduced?' check that ArrayChunk.java has in it's implementation of reduce (around line