Re: [core.logic] What's the difference between "q" and a fresh LVar? Or: "java.lang.ClassCastException: clojure.core.logic.LVar cannot be cast to java.lang.Number"

2016-04-09 Thread Daniel Ziltener
he issue. You also are using :id in one > variation, and :db/id in the other. > > On 04/08/2016 05:46 PM, Daniel Ziltener wrote: > > Hi clj, > > > > I'm trying to do some simple core.logic stuff. My input is a vector of > > maps, which I turn into a source for core

Re: leiningen dependency management

2016-04-08 Thread Daniel Ziltener
Hi Sven, When you're sure the project depending your library does also has a dependency on a third library, it's best to use the ":provided" profile, rather than declaring it in the :dev profile. In your case there are two possible solutions: 1. the dependency higher up wins. So if you declare

[core.logic] What's the difference between "q" and a fresh LVar? Or: "java.lang.ClassCastException: clojure.core.logic.LVar cannot be cast to java.lang.Number"

2016-04-08 Thread Daniel Ziltener
Hi clj, I'm trying to do some simple core.logic stuff. My input is a vector of maps, which I turn into a source for core.logic using (defn make-datamap-rel [datapile] (fn [q] (fn [a] (to-stream (map #(unify a % q) (flatten datapile)) Now I have written two variants for