Hi Sunil,

Here's a version of unify-map with these input/output argument restrictions
(I is input, ie. ground, O is output, ie. non-ground)

IIII
IIOI
IIIO

https://gist.github.com/1517552

Does this satisfy your requirements?

Thanks,
Ambrose

On Sat, Dec 24, 2011 at 6:54 PM, Sunil S Nandihalli <
sunil.nandiha...@gmail.com> 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 <
> sunil.nandiha...@gmail.com> wrote:
>
>> Thanks Ambrose.. That is exactly what I wanted.
>> Sunil.
>>
>>
>> On Sat, Dec 24, 2011 at 1:23 PM, Ambrose Bonnaire-Sergeant <
>> abonnaireserge...@gmail.com> 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 <
>>> sunil.nandiha...@gmail.com> 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 clojure@googlegroups.com
>>>> Note that posts from new members are moderated - please be patient with
>>>> your first post.
>>>> To unsubscribe from this group, send email to
>>>> clojure+unsubscr...@googlegroups.com
>>>> 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 clojure@googlegroups.com
>>> Note that posts from new members are moderated - please be patient with
>>> your first post.
>>> To unsubscribe from this group, send email to
>>> clojure+unsubscr...@googlegroups.com
>>> 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 clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> 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 clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to