<!-- 
RSS generated by JIRA (4.4#649-r158309) at Wed May 22 17:13:24 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-692/CLJ-692.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-692] Should &quot;some&quot; be using &quot;seq?&quot; rather than &quot;seq&quot; ?</title>
                <link>http://dev.clojure.org/jira/browse/CLJ-692</link>
                <project id="10010" key="CLJ">Clojure</project>
                        <description>&lt;p&gt;Very minor, but noticed while browsing that &quot;some&quot; is defined as:&lt;/p&gt;

&lt;p&gt;(defn some&lt;br/&gt;
  ...&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;pred coll&amp;#93;&lt;/span&gt;&lt;br/&gt;
    (when (seq coll)&lt;br/&gt;
      (or (pred (first coll)) (recur pred (next coll)))))&lt;/p&gt;

&lt;p&gt;The &quot;(seq coll)&quot; call will potentially generate an unused seq each time.&lt;/p&gt;</description>
                <environment>Mac OS X Java 6</environment>
            <key id="14301">CLJ-692</key>
            <summary>Should &quot;some&quot; be using &quot;seq?&quot; rather than &quot;seq&quot; ?</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</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="2">Declined</resolution>
                                <assignee username="-1">Unassigned</assignee>
                                <reporter username="m@mattp.name">Matthew Phillips</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 Dec 2010 03:16:22 -0600</created>
                <updated>Fri, 8 Jul 2011 03:28:42 -0500</updated>
                    <resolved>Mon, 27 Dec 2010 07:57:17 -0600</resolved>
                            <version>Release 1.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="26062" author="fogus" created="Mon, 27 Dec 2010 07:57:18 -0600"  >&lt;p&gt;The `seq` function is the idiomatic way to ask the question &quot;does this collection have something in it?&quot; and is the correct approach in the case of `some`.  If we were to use `seq?` then we would be asking an entirely different question: &quot;does this collection implement the ISeq interface&quot;.  In the case of using `seq?`, `some` would no longer work against the seq abstraction.  It&apos;s tempting to look at the name `seq` and `seq?` and assume that they mean similar things.  The type-based predicates are tricky. &lt;img class=&quot;emoticon&quot; src=&quot;http://dev.clojure.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                    <comment id="26557" author="m@mattp.name" created="Fri, 8 Jul 2011 03:28:41 -0500"  >&lt;p&gt;Thanks for the informative comment Michael. I was just watching Rich&apos;s talk on seq&apos;s, and remembered making this noob bug report: sorry! &lt;img class=&quot;emoticon&quot; src=&quot;http://dev.clojure.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&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>