<!-- 
RSS generated by JIRA (4.4#649-r158309) at Mon May 20 03:59:15 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-75/LOGIC-75.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-75] Combining maps and finite domains in core.logic returns only one result</title>
                <link>http://dev.clojure.org/jira/browse/LOGIC-75</link>
                <project id="10020" key="LOGIC">core.logic</project>
                        <description>&lt;p&gt;I&apos;m trying to combine maps with finite domains with some odd results.&lt;/p&gt;

&lt;p&gt;A simple query using finite domains correctly returns all values:&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;(run* [q]
	  (fresh [x]
	    (infd x (interval 1 3))
	    (== q x)))
	
	;=&amp;gt; (1 2 3)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But putting this result in a map returns only the first value:&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;(run* [q]
	  (fresh [x]
	    (infd x (interval 1 3))
	    (== q {:foo x})))
	
	;=&amp;gt; ({:foo 1})&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;FYI this works with vectors:&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;(run* [q]
	  (fresh [x]
	    (infd x (interval 1 3))
	    (== q [x])))
	
	;=&amp;gt; ([1] [2] [3])&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But lcons seems to fail as well:&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;(run* [q]
	  (fresh [x]
	    (infd x (interval 1 3))
	    (== q (lcons x &apos;foo))))
	
	;=&amp;gt; ((1 . foo))&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Clojure 1.4.0, core.logic 0.8.0-beta2</environment>
            <key id="15881">LOGIC-75</key>
            <summary>Combining maps and finite domains in core.logic returns only one result</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="1">Completed</resolution>
                                <assignee username="dnolen">David Nolen</assignee>
                                <reporter username="frederikdb">Frederik De Bleser</reporter>
                        <labels>
                        <label>bug</label>
                    </labels>
                <created>Tue, 11 Dec 2012 04:41:12 -0600</created>
                <updated>Wed, 12 Dec 2012 11:53:35 -0600</updated>
                    <resolved>Wed, 12 Dec 2012 11:53:35 -0600</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="30218" author="dnolen" created="Wed, 12 Dec 2012 11:53:35 -0600"  >&lt;p&gt;fixed, &lt;a href=&quot;http://github.com/clojure/core.logic/commit/c96402f3e60b1118446b3e681d98e444e4ce417d&quot;&gt;http://github.com/clojure/core.logic/commit/c96402f3e60b1118446b3e681d98e444e4ce417d&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                                                            </customfields>
    </item>
</channel>
</rss>