Fork me on GitHub
#core-logic
<
2018-01-16
>
norman04:01:20

core.logic does not guarantee (or attempt to provide) randomness

reefersleep09:01:52

Cheers @norman, that confirms my suspicion

reefersleep09:01:47

So potentially, I can use core.logic to know whether there is a viable solution for my set of parameters or not, and, if I slack on the randomness, what such a solution could look like. Hm. I think it may still make sense to incorporate it in my program logic, but I have to think more about how 🙂

reefersleep16:01:30

In The Reasoned Schemer, definition 54 (of membero), I don't understand how the nullo line can be left out. From my perspective, this would then cause an infinite recursive loop in the "else" part.

reefersleep16:01:40

Maybe I don't fully understand cdro - I suppose that this should fail when given an empty list and a fresh lvar.

reefersleep17:01:59

Ah, I see, I think... I'll end up with (== (lvar1 lvar2) ()) or something to that effect inside the cdro body.

reefersleep20:01:12

Thanks for rubber ducking, everyone 😄

reefersleep20:01:40

What can one use instead of everyg in Clojurescript core.logic?