Re:Who owns the fish? A Common Lisp solution to "Einstein's...
by andolanra on Monday May 12, 2014 @10:22PM
(#7736332)
Indeed, we can use Haskell lists as the amb operator and implement require as
and then express amb-like computations in effectively the same way:
after which the value of sample is [(2,1),(4,2)]. (Also, my require is effectively the same as the guard function found in Control.Monad, specialized for lists.)
[ Parent
| on HN ]
There are no comments on this comment yet.