<!-- 
RSS generated by JIRA (4.4#649-r158309) at Fri May 24 10:56:45 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://dev.clojure.org/jira/si/jira.issueviews:issue-xml/LOGIC-72/LOGIC-72.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Clojure JIRA</title>
    <link>http://dev.clojure.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>4.4</version>
        <build-number>649</build-number>
        <build-date>25-07-2011</build-date>
    </build-info>

<item>
            <title>[LOGIC-72] Unification with partial-map fails when a map contains a map value with extra keys</title>
                <link>http://dev.clojure.org/jira/browse/LOGIC-72</link>
                <project id="10020" key="LOGIC">core.logic</project>
                        <description>&lt;p&gt;Unification fails for partial-map when there is a partial match on a sub-map.&lt;/p&gt;

&lt;p&gt;A failing test case:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;(is (= &apos;[#clojure.core.logic.PMap{:a {:b 2}}]
         (run* [q]
           (fresh [pm x]
             (== (partial-map {:a {:b x}}) pm)
             (== {:a {:b 2 :c 3}} pm)
             (== q pm)))))&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
</description>
                <environment></environment>
            <key id="15847">LOGIC-72</key>
            <summary>Unification with partial-map fails when a map contains a map value with extra keys</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="3" iconUrl="http://dev.clojure.org/jira/images/icons/priority_major.gif">Major</priority>
                    <status id="5" iconUrl="http://dev.clojure.org/jira/images/icons/status_resolved.gif">Resolved</status>
                    <resolution id="2">Declined</resolution>
                                <assignee username="dnolen">David Nolen</assignee>
                                <reporter username="hugoduncan">Hugo Duncan</reporter>
                        <labels>
                    </labels>
                <created>Thu, 22 Nov 2012 23:03:35 -0600</created>
                <updated>Fri, 23 Nov 2012 15:58:44 -0600</updated>
                    <resolved>Fri, 23 Nov 2012 15:58:44 -0600</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="30021" author="hugoduncan" created="Fri, 23 Nov 2012 15:55:35 -0600"  >&lt;p&gt;As mentioned by Kevin Lynagh, this can be achieved using walk-term, and I agree the behaviour is better off being explicit.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;(defn -&amp;gt;pmap [x]
  (&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (map? x)
    (l/partial-map x)
    x))

(l/unifier target (-&amp;gt;pmap (l/walk-term my-map -&amp;gt;pmap)))&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="30022" author="dnolen" created="Fri, 23 Nov 2012 15:58:44 -0600"  >&lt;p&gt;having partial-map implicitly recurse is undesirable. It&apos;s easy to achieve the desired behavior now that we have a reusable walk-term built into core.logic.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11700" name="recursive-partial-map.diff" size="2300" author="hugoduncan" created="Thu, 22 Nov 2012 23:03:36 -0600" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                <customfieldname>Patch</customfieldname>
                <customfieldvalues>
                        <customfieldvalue key="10002">Code and Test</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                        </customfields>
    </item>
</channel>
</rss>