A clarification, non-ground keys in maps is not a good idea and not really supported in core.logic.
On Saturday, December 24, 2011, Sunil S Nandihalli < [email protected]> wrote: > Hi Ambrose, > I tried to run your code .. the following gist describes how I tried to run it ... > https://gist.github.com/384b50f23ff99f409b5c > I was expecting the answer to be ([:a :b]) .. but I instead got () .. > can you please clarify? > Thanks, > Sunil. > > On Sat, Dec 24, 2011 at 4:05 PM, Sunil S Nandihalli < [email protected]> wrote: >> >> Thanks Ambrose.. That is exactly what I wanted. >> Sunil. >> >> On Sat, Dec 24, 2011 at 1:23 PM, Ambrose Bonnaire-Sergeant < [email protected]> wrote: >>> >>> Or is this more what you're after? https://gist.github.com/1516727 >>> Ambrose >>> >>> On Sat, Dec 24, 2011 at 3:39 PM, Sunil S Nandihalli < [email protected]> wrote: >>>> >>>> Hi, >>>> I would like to create a predicate which would accept two keys k1,k2 and two maps m1 m2 .. and unify the following >>>> m1[k1] = k2 and m2[k2] = k1 .. I have spent some time on it.. but been unable to figure out how to do this. I would like this to be as efficient as possible. I would appreciate any suggestion any of you may have.. >>>> Thanks, >>>> Sunil. >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Clojure" group. >>>> To post to this group, send email to [email protected] >>>> Note that posts from new members are moderated - please be patient with your first post. >>>> To unsubscribe from this group, send email to >>>> [email protected] >>>> For more options, visit this group at >>>> http://groups.google.com/group/clojure?hl=en >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Clojure" group. >>> To post to this group, send email to [email protected] >>> Note that posts from new members are moderated - please be patient with your first post. >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/clojure?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
