<!-- 
RSS generated by JIRA (4.4#649-r158309) at Sat May 25 19:51:07 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/CLJ-342/CLJ-342.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>[CLJ-342] Enhance (vector-of) to populate vector</title>
                <link>http://dev.clojure.org/jira/browse/CLJ-342</link>
                <project id="10010" key="CLJ">Clojure</project>
                        <description>&lt;p&gt;As discussed on clojure-dev at &amp;lt;&lt;a href=&quot;http://groups.google.com/group/clojure-dev/browse_thread/thread/97137884bb33f8ee&quot;&gt;http://groups.google.com/group/clojure-dev/browse_thread/thread/97137884bb33f8ee&lt;/a&gt;&amp;gt;, I would like to enhance (vector-of) so that it can create a populated vector.  There are two ways to do this:&lt;/p&gt;

&lt;p&gt;1. Like vector, take an arbitrary number of arguments used to populate the array.&lt;br/&gt;
2. Like vec, take a collection and use it to populate the array.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13739">CLJ-342</key>
            <summary>Enhance (vector-of) to populate vector</summary>
                <type id="4" iconUrl="http://dev.clojure.org/jira/images/icons/improvement.gif">Enhancement</type>
                                <priority id="4" iconUrl="http://dev.clojure.org/jira/images/icons/priority_minor.gif">Minor</priority>
                    <status id="6" iconUrl="http://dev.clojure.org/jira/images/icons/status_closed.gif">Closed</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="dsg">Daniel Solano G&#243;mez</assignee>
                                <reporter username="importer">Assembla Importer</reporter>
                        <labels>
                    </labels>
                <created>Wed, 5 May 2010 21:25:00 -0500</created>
                <updated>Sun, 20 Mar 2011 08:46:37 -0500</updated>
                    <resolved>Sun, 20 Mar 2011 08:46:36 -0500</resolved>
                                            <fixVersion>Approved Backlog</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="23866" author="importer" created="Tue, 28 Sep 2010 08:57:00 -0500"  >&lt;p&gt;Converted from &lt;a href=&quot;http://www.assembla.com/spaces/clojure/tickets/342&quot;&gt;http://www.assembla.com/spaces/clojure/tickets/342&lt;/a&gt;&lt;br/&gt;
Attachments:&lt;br/&gt;
342-enhance-vector-of.patch - &lt;a href=&quot;https://www.assembla.com/spaces/clojure/documents/ciVMWWwl8r35ypeJe5cbLr/download/ciVMWWwl8r35ypeJe5cbLr&quot;&gt;https://www.assembla.com/spaces/clojure/documents/ciVMWWwl8r35ypeJe5cbLr/download/ciVMWWwl8r35ypeJe5cbLr&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="23867" author="importer" created="Tue, 28 Sep 2010 08:57:00 -0500"  >&lt;p&gt;dsg said: [&lt;a href=&quot;file:ciVMWWwl8r35ypeJe5cbLr&quot;&gt;file:ciVMWWwl8r35ypeJe5cbLr&lt;/a&gt;]&lt;/p&gt;</comment>
                    <comment id="23868" author="importer" created="Tue, 28 Sep 2010 08:57:00 -0500"  >&lt;p&gt;dsg said: I have attached a patch that implements the proposed enhancement.  I am fairly certain it is not the absolutely highest performance implementation.&lt;/p&gt;

&lt;p&gt;I have not taken a lot of time to thoroughly study the code, but I think there is probably a way to create the initial array and pass it as an argument to the constructor, which would avoid a lot of the cons calls.&lt;/p&gt;

&lt;p&gt;Nonetheless, I think it is important enough to provide convenience of the interface.  The implementation can always be changed later.&lt;/p&gt;</comment>
                    <comment id="23869" author="importer" created="Tue, 28 Sep 2010 08:57:00 -0500"  >&lt;p&gt;richhickey said: You can&apos;t have it both ways. vector-of should be like vector, I think.&lt;/p&gt;</comment>
                    <comment id="26243" author="dsg" created="Fri, 25 Feb 2011 16:29:27 -0600"  >&lt;p&gt;I have updated my patch to reflect Rich&apos;s recommendation.  vector-of now behaves similarly to vector.&lt;/p&gt;

&lt;p&gt;Includes tests.&lt;/p&gt;</comment>
                    <comment id="26297" author="richhickey" created="Thu, 10 Mar 2011 11:45:26 -0600"  >&lt;p&gt;For the 1,2,3 cases it&apos;s better to create an array of that size and .aset am into it, please. &amp;amp; rest case could bootstrap with 3-arg call as well.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                    <comment id="26299" author="dsg" created="Thu, 10 Mar 2011 14:02:12 -0600"  >&lt;p&gt;Updated patch to reflect Rich&apos;s suggestions.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10121" name="enhance-vector-of.patch" size="4144" author="dsg" created="Fri, 25 Feb 2011 16:29:27 -0600" />
                    <attachment id="10143" name="updated-enhance-vector-of.patch" size="4584" author="dsg" created="Thu, 10 Mar 2011 14:02:12 -0600" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                <customfield id="customfield_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                <customfieldname>Approval</customfieldname>
                <customfieldvalues>
                        <customfieldvalue key="10007">Ok</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                    <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                                                        <customfield id="customfield_10003" key="com.atlassian.jira.plugin.system.customfieldtypes:userpicker">
                <customfieldname>Waiting On</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>stu</customfieldvalue>
                </customfieldvalues>
            </customfield>
                            </customfields>
    </item>
</channel>
</rss>