For a limited version of this, there also exists the compose function :<br>
((compose foo bar clum ink))<br>
<br>
Laurent<br><br><br><div class="gmail_quote">On Thu, Oct 22, 2009 at 04:02, Prabhakar Ragde <span dir="ltr"><<a href="mailto:plragde@uwaterloo.ca">plragde@uwaterloo.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">hendrik wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
OK. Here's what I used in a Lisp dialect once:<br>
<br>
( foofoofoo / barbarbar )<br>
<br>
means<br>
<br>
( foofoofoo ( barbarbar ))<br>
<br>
where foofoofoo and barbarbar are each sequences of s-expressions.<br>
<br>
Of course, you can iterate:<br>
<br>
( foo / bar / clum / ink )<br>
<br>
means<br>
<br>
( foo ( bar ( clum ( ink ))))<br>
<br>
And that's all there is to it.<br>
</blockquote>
<br></div>
This is similar to the way that the $ infix operator (function application) is used in Haskell.<br>
<br>
foo (bar (clum (ink)))<br>
<br>
becomes<br>
<br>
foo $ bar $ clum $ ink<br>
<br>
John Clements once teased me for using $ in a short snippet of Haskell I wrote. Like all syntactic sugar, overuse increases the chance of diabetes. (There, I have left an opening for a pun, if anyone cares to pursue it.) --PR<div>
<div></div><div class="h5"><br>
_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br>
</div></div></blockquote></div><br>