Re: first core.logic experiment

2012-03-22 Thread Cesare
On Mar 22, 2:47 pm, David Nolen wrote: > Neat! I see that you figured out defne, you could probably simplify > doactiono with matche as well. ok, I'll try soon. > The Clojure REPL doesn't print exceptions by default, but I'm sure if you > print it out with (clojure.repl/pst *e) you'd see that it

Re: first core.logic experiment

2012-03-22 Thread David Nolen
Neat! I see that you figured out defne, you could probably simplify doactiono with matche as well. The Clojure REPL doesn't print exceptions by default, but I'm sure if you print it out with (clojure.repl/pst *e) you'd see that it does let you know that you called firsto with the wrong number of a

first core.logic experiment

2012-03-22 Thread Cesare
Hi all, I'm experimenting with clojure.core: very nice! This is a simple planner for the Farmer Crosses River puzzle: (def characters [:farmer :goat :wolf :cabbage]) ;;; they all start on the left side of the river (def _starting-state {:farmer :l, :goat :l :wolf :l :cabbage :l}) ;;; they all m