Logic programming in Clojure
"Logic will get you from A to B. Imagination will take you everywhere." | ||
--Albert Einstein |
This recipe is going to be a hell of a ride recipe. Strap yourself in. Get a shot of tequila. This is hardcore. So many fun things to learn! But first, what is logic programming? In one sentence, I would say:
Logic programming is a technique that enables you to find goals, given a set of statements or facts.
Again, this is the author's way of presenting logic programming. There is much more academic language being used on the Internet if you are interested. Anyway. What does that mean in easy-to-read terms? Let's see an example.
Say you want to find all the solutions where x is not equal to 2, and x is in the list (1 2 3). Or ...
Get Clojure Programming Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.