OK thanks a lot both of you....it turns out the != works just fine!
at the moment I've almost completed the entire moving rules for chess
and checkers (including kills) but only on an empty board...the only
thing remaining to finish things off is ideally a 'non-blocking?' fn to
check each move generated against the current-board. essentially
filtering out the moves that are blocked by other pieces...do you think
this can be done non-relationally by a novice or am I better off using a
regular fn?
any clues are greatly appreciated...
Jim
On 15/08/12 14:32, David Nolen wrote:
On Wed, Aug 15, 2012 at 9:02 AM, Jim - FooBar(); <jimpil1...@gmail.com> wrote:
Hi everyone,
I was thinking about how to invert the 'nilo' relation found in core.logic:
(defn nilo
"A relation where a is nil"
[a]
(== nil a))
there is a != operator but it is in the arithmetic namespace so i don't
expect it to work...
any pointers?
Jim
There is a != goal in the core lib. In the current alphas there's also
!=fd. As Ambrose said, they might be unified - but it's too early to
say.
David
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en