<!-- 
RSS generated by JIRA (4.4#649-r158309) at Tue Jun 18 01:39:50 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/MATCH-21/MATCH-21.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>[MATCH-21] Head-Tail Pattern Matching Fails for Lists</title>
                <link>http://dev.clojure.org/jira/browse/MATCH-21</link>
                <project id="10050" key="MATCH">core.match</project>
                        <description>&lt;p&gt;Head-tail pattern matching only seems to work with vectors.&lt;/p&gt;

&lt;p&gt;Commit: &lt;a href=&quot;https://github.com/clojure/core.match/commit/9f4919d855be09a1b32f9e5563ac1c3f5bace642&quot;&gt;https://github.com/clojure/core.match/commit/9f4919d855be09a1b32f9e5563ac1c3f5bace642&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The following code falls through. (macroexpand appended)&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;(let [x &apos;(1 2 3)]
  (match [x]
         [[a &amp;amp; as]] :a))&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;(&lt;span class=&quot;code-keyword&quot;&gt;try&lt;/span&gt;
  (clojure.core/cond
    (clojure.core/instance? clojure.lang.IPersistentVector x) (&lt;span class=&quot;code-keyword&quot;&gt;try&lt;/span&gt;
                                                                (clojure.core/let 
                                                                  [x_left__3201
                                                                   (clojure.core/subvec
                                                                     x
                                                                     0
                                                                     1)]
                                                                  (clojure.core/cond
                                                                    (clojure.core/and
                                                                      (clojure.core/instance?
                                                                        clojure.lang.IPersistentVector
                                                                        x_left__3201)
                                                                      (clojure.core/=
                                                                        (clojure.core/count
                                                                          x_left__3201)
                                                                        1))
                                                                    (clojure.core/let 
                                                                      [a
                                                                       (clojure.core/nth
                                                                         x_left__3201
                                                                         0)
                                                                       as
                                                                       (clojure.core/subvec
                                                                         x
                                                                         1)]
                                                                      :a)
                                                                    :&lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
                                                                    (&lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt;
                                                                      clojure.core.match.core/backtrack)))
                                                                (&lt;span class=&quot;code-keyword&quot;&gt;catch&lt;/span&gt;
                                                                  java.lang.Exception
                                                                  e__2436__auto__
                                                                  (&lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt;
                                                                    clojure.core.match.core/backtrack)))
    :&lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; clojure.core.match.core/backtrack))
  (&lt;span class=&quot;code-keyword&quot;&gt;catch&lt;/span&gt;
    java.lang.Exception
    e__2437__auto__
    (&lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; clojure.core.match.core/backtrack)))&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14654">MATCH-21</key>
            <summary>Head-Tail Pattern Matching Fails for Lists</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="ambrosebs">Ambrose Bonnaire-Sergeant</reporter>
                        <labels>
                    </labels>
                <created>Fri, 30 Sep 2011 04:28:58 -0500</created>
                <updated>Sun, 2 Oct 2011 11:35:01 -0500</updated>
                    <resolved>Sun, 2 Oct 2011 11:35:01 -0500</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="26888" author="dnolen" created="Sun, 2 Oct 2011 11:35:01 -0500"  >&lt;p&gt;This is the expected behavior. If you want to match seqs you have to use the seq pattern syntax.&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>