<!-- 
RSS generated by JIRA (4.4#649-r158309) at Fri May 24 16:41:49 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/CLJS-183/CLJS-183.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>[CLJS-183] The pop function in PersistentVector is buggy</title>
                <link>http://dev.clojure.org/jira/browse/CLJS-183</link>
                <project id="10040" key="CLJS">ClojureScript</project>
                        <description>&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;(conj (pop &lt;span class=&quot;error&quot;&gt;&amp;#91;1 2&amp;#93;&lt;/span&gt;) 3) =&amp;gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;1 2&amp;#93;&lt;/span&gt;&lt;/p&gt;
</description>
                <environment></environment>
            <key id="15338">CLJS-183</key>
            <summary>The pop function in PersistentVector is buggy</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="-1">Unassigned</assignee>
                                <reporter username="ejlo">Erik Ouchterlony</reporter>
                        <labels>
                        <label>bug</label>
                    </labels>
                <created>Wed, 18 Apr 2012 09:47:53 -0500</created>
                <updated>Thu, 19 Apr 2012 22:31:57 -0500</updated>
                    <resolved>Thu, 19 Apr 2012 22:31:57 -0500</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="28170" author="bronsa" created="Wed, 18 Apr 2012 10:22:15 -0500"  >&lt;p&gt;this patch fixes pop&lt;/p&gt;</comment>
                    <comment id="28172" author="laczoka" created="Thu, 19 Apr 2012 02:38:51 -0500"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;good catch, but why not simply:&lt;/p&gt;

&lt;p&gt;(PersistentVector. meta (dec cnt) shift root (.slice tail 0 -1))&lt;br/&gt;
 ;; you don&apos;t need to aclone and splice, .slice returns a new array&lt;/p&gt;
</comment>
                    <comment id="28173" author="bronsa" created="Thu, 19 Apr 2012 03:48:36 -0500"  >&lt;p&gt;right, using slice is even faster.&lt;br/&gt;
patch updated&lt;/p&gt;</comment>
                    <comment id="28174" author="laczoka" created="Thu, 19 Apr 2012 06:01:22 -0500"  >&lt;p&gt;Nice, thank you!&lt;/p&gt;

&lt;p&gt;Could you please add a test that covers the issue?&lt;/p&gt;

&lt;p&gt;e.g. &lt;/p&gt;

&lt;p&gt;(assert (= (vec (range 33))&lt;br/&gt;
             (-&amp;gt; (vec (range 33))&lt;br/&gt;
                 (pop)&lt;br/&gt;
                 (pop)&lt;br/&gt;
                 (conj 31)&lt;br/&gt;
                 (conj 32))))&lt;/p&gt;</comment>
                    <comment id="28179" author="bronsa" created="Thu, 19 Apr 2012 10:15:26 -0500"  >&lt;p&gt;sure, here it is&lt;/p&gt;</comment>
                    <comment id="28180" author="dnolen" created="Thu, 19 Apr 2012 22:31:57 -0500"  >&lt;p&gt;Fixed, &lt;a href=&quot;https://github.com/clojure/clojurescript/commit/053b7fd9cbb0a24617592f490893d6a746e54ec7&quot;&gt;https://github.com/clojure/clojurescript/commit/053b7fd9cbb0a24617592f490893d6a746e54ec7&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11066" name="fix-persistentvector-pop.diff" size="1007" author="bronsa" created="Thu, 19 Apr 2012 03:48:36 -0500" />
                    <attachment id="11062" name="fix-persistentvector-pop.diff" size="1173" author="bronsa" created="Wed, 18 Apr 2012 12:50:51 -0500" />
                    <attachment id="11067" name="fix-persistentvector-pop-with-tests.diff" size="1892" author="bronsa" created="Thu, 19 Apr 2012 10:15:26 -0500" />
                </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>