Re: How to use plain Clojure functions in core.logic?

2016-01-27 Thread 良ϖ
Well, FYI I've figured out you just need to project the variables you want. Sorry for double-posting. However I've got no idea about how optimum this is. So please don't hesitate if you think about any more clever way to use functions in core.logic :-) 胡軒 ```clojure (let [depart-state {:a {:a 1

How to use plain Clojure functions in core.logic?

2016-01-26 Thread 良ϖ
Hi everybody, I have defined a plain Clojure function which has a specific logic inside. It outputs a mutated state given an initial state and some other arguments. Basically, we could say it is like: (defn modifier [basic x y value] (assoc-in basic [x y] value)) I want core.logic to deal with it