core-logic

noprompt 2017-12-08T21:56:00.000160Z

so now i’m curious, why not have == be guided by a protocol underneath that returns Substitutions? since goals are expected to return a stream of substitutions it seems like it doesn’t necessarily need to be limited to either the unit stream or nil.

paulocuneo 2017-12-11T22:51:16.000223Z

but it already does something like that(kinda), see IUnifyTerms

noprompt 2017-12-08T21:57:08.000119Z

iow you could have an implementation of == for maps such that it returns a goal which, if possible, produces a stream all of the possible substitutions.