core-logic

2018-01-16T04:54:20.000272Z

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

reefersleep 2018-01-16T09:25:52.000187Z

Cheers @norman, that confirms my suspicion

reefersleep 2018-01-16T09:29:47.000625Z

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 🙂

reefersleep 2018-01-16T16:55:30.000578Z

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.

reefersleep 2018-01-16T16:56:40.000652Z

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

reefersleep 2018-01-16T17:00:59.000130Z

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

reefersleep 2018-01-16T20:22:12.000714Z

Thanks for rubber ducking, everyone 😄

reefersleep 2018-01-16T20:24:40.000103Z

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