<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: List comprehensions in Common Lisp</title>
	<atom:link href="http://blog.superadditive.com/2007/11/09/list-comprehensions-in-common-lisp/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.superadditive.com/2007/11/09/list-comprehensions-in-common-lisp/</link>
	<description>Pseudo-random thoughts by Juan M. Bello Rivas</description>
	<pubDate>Sun, 06 Jul 2008 16:30:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=c510febb9bed68b5cc4a09f076701e0f&#38;size=35&#38;default=http://blog.superadditive.com/wp-content/plugins/wp-identicon/identicon/e7416466cbf0b62.png" alt="Janon Identicon Icon" height="35" width="35" /> Janon</title>
		<link>http://blog.superadditive.com/2007/11/09/list-comprehensions-in-common-lisp/#comment-4901</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=c510febb9bed68b5cc4a09f076701e0f&#38;size=35&#38;default=http://blog.superadditive.com/wp-content/plugins/wp-identicon/identicon/e7416466cbf0b62.png" alt="Janon Identicon Icon" height="35" width="35" /> Janon</dc:creator>
		<pubDate>Wed, 21 Nov 2007 16:19:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.superadditive.com/2007/11/09/list-comprehensions-in-common-lisp/#comment-4901</guid>
		<description>Example #1 in J

1 line
(I.2= /"1 n){[n=.3 3#:i.*:3

3 lines
cp=. 3 3 #: i. *: 3
ix=. I. 2=  /"1 cp
ix { cp

0 2
1 1
2 0

for boxes
&#60;"1 ix { cp
&#124;0 2&#124;1 1&#124;2 0&#124;</description>
		<content:encoded><![CDATA[<p>Example #1 in J</p>
<p>1 line<br />
(I.2= /&#8221;1 n){[n=.3 3#:i.*:3</p>
<p>3 lines<br />
cp=. 3 3 #: i. *: 3<br />
ix=. I. 2=  /&#8221;1 cp<br />
ix { cp</p>
<p>0 2<br />
1 1<br />
2 0</p>
<p>for boxes<br />
&lt;&#8221;1 ix { cp<br />
|0 2|1 1|2 0|</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=75e48a7020624657e5da6033590030ee&#38;size=35&#38;default=http://blog.superadditive.com/wp-content/plugins/wp-identicon/identicon/49861f0b8f4021b.png" alt="Moocow Says Moo Identicon Icon" height="35" width="35" /> Moocow Says Moo</title>
		<link>http://blog.superadditive.com/2007/11/09/list-comprehensions-in-common-lisp/#comment-4881</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=75e48a7020624657e5da6033590030ee&#38;size=35&#38;default=http://blog.superadditive.com/wp-content/plugins/wp-identicon/identicon/49861f0b8f4021b.png" alt="Moocow Says Moo Identicon Icon" height="35" width="35" /> Moocow Says Moo</dc:creator>
		<pubDate>Tue, 20 Nov 2007 18:39:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.superadditive.com/2007/11/09/list-comprehensions-in-common-lisp/#comment-4881</guid>
		<description>Relevant ref to another ready-to-go list comprehensions library, probably the default one a long-time lisper will reach for first (it is mentioned in Mario's paper, but he dismisses it because it looks complex and possibly slow, which is rather missing the point: Sven's focus was on versatility - "Collect" is extensible to work with any lisp type, which nice. Very nice. i.e. it's "almost anything comprehensions", not just "list comprehensions":
http://user.it.uu.se/~svenolof/Collect/</description>
		<content:encoded><![CDATA[<p>Relevant ref to another ready-to-go list comprehensions library, probably the default one a long-time lisper will reach for first (it is mentioned in Mario&#8217;s paper, but he dismisses it because it looks complex and possibly slow, which is rather missing the point: Sven&#8217;s focus was on versatility - &#8220;Collect&#8221; is extensible to work with any lisp type, which nice. Very nice. i.e. it&#8217;s &#8220;almost anything comprehensions&#8221;, not just &#8220;list comprehensions&#8221;:<br />
<a href="http://user.it.uu.se/~svenolof/Collect/" rel="nofollow">http://user.it.uu.se/~svenolof/Collect/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=4c7cfbfaf33789fbea36bc5507c05c36&#38;size=35&#38;default=http://blog.superadditive.com/wp-content/plugins/wp-identicon/identicon/7ffad8b4b8bea9e.png" alt="Tac-Tics Identicon Icon" height="35" width="35" /> Tac-Tics</title>
		<link>http://blog.superadditive.com/2007/11/09/list-comprehensions-in-common-lisp/#comment-4877</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=4c7cfbfaf33789fbea36bc5507c05c36&#38;size=35&#38;default=http://blog.superadditive.com/wp-content/plugins/wp-identicon/identicon/7ffad8b4b8bea9e.png" alt="Tac-Tics Identicon Icon" height="35" width="35" /> Tac-Tics</dc:creator>
		<pubDate>Tue, 20 Nov 2007 15:33:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.superadditive.com/2007/11/09/list-comprehensions-in-common-lisp/#comment-4877</guid>
		<description>I wrote a list comprehension macro the other day. I don't use CL, but I was reading up on it, and I thought it would be an interesting exercise. But I gave mine a different form:

(zf (* x y) 
    (x '(1 2 3 4))
    (y '(1 2 3 4))
    if (evenp x)
       (oddp y))

I used zf for the name, as list comprehensions are sometimes called Zermelo–Fraenkel expressions, and because zf is really short and stands out. The if marker in the middle breaks the sets from the conditions, avoiding the prefix &#60;- form and makes the whole thing slightly easier on the eyes. (Again, I'm not a Lisper, so I don't have the Paren-Sight yet ;-)

It's cool to see someone else doing the same thing.</description>
		<content:encoded><![CDATA[<p>I wrote a list comprehension macro the other day. I don&#8217;t use CL, but I was reading up on it, and I thought it would be an interesting exercise. But I gave mine a different form:</p>
<p>(zf (* x y)<br />
    (x &#8216;(1 2 3 4))<br />
    (y &#8216;(1 2 3 4))<br />
    if (evenp x)<br />
       (oddp y))</p>
<p>I used zf for the name, as list comprehensions are sometimes called Zermelo–Fraenkel expressions, and because zf is really short and stands out. The if marker in the middle breaks the sets from the conditions, avoiding the prefix &lt;- form and makes the whole thing slightly easier on the eyes. (Again, I&#8217;m not a Lisper, so I don&#8217;t have the Paren-Sight yet ;-)</p>
<p>It&#8217;s cool to see someone else doing the same thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=1b8ad932bc579f73418f0a9660ec21fa&#38;size=35&#38;default=http://blog.superadditive.com/wp-content/plugins/wp-identicon/identicon/2d444ef66adabe8.png" alt="Roger Sen Identicon Icon" height="35" width="35" /> Roger Sen</title>
		<link>http://blog.superadditive.com/2007/11/09/list-comprehensions-in-common-lisp/#comment-4876</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=1b8ad932bc579f73418f0a9660ec21fa&#38;size=35&#38;default=http://blog.superadditive.com/wp-content/plugins/wp-identicon/identicon/2d444ef66adabe8.png" alt="Roger Sen Identicon Icon" height="35" width="35" /> Roger Sen</dc:creator>
		<pubDate>Tue, 20 Nov 2007 15:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.superadditive.com/2007/11/09/list-comprehensions-in-common-lisp/#comment-4876</guid>
		<description>You'll find this paper from Guy Lapalme interesting:
 http://rali.iro.umontreal.ca/Publications/urls/LapalmeLispComp.pdf</description>
		<content:encoded><![CDATA[<p>You&#8217;ll find this paper from Guy Lapalme interesting:<br />
 <a href="http://rali.iro.umontreal.ca/Publications/urls/LapalmeLispComp.pdf" rel="nofollow">http://rali.iro.umontreal.ca/Publications/urls/LapalmeLispComp.pdf</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
