<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for JaskellScript - the contented</title><link>http://disqus.com/people/fd212dd9aaa61f6d8412595c28289c83/</link><description></description><language>en</language><lastBuildDate>Mon, 23 Jul 2007 17:18:27 -0000</lastBuildDate><item><title>Re: Functional JavaScript</title><link>http://osteele.disqus.com/functional_javascript/#comment-4881107</link><description>[...] Did you ever use Haskell?Haskell is a functional programming language (you&amp;#8217;ll soon see what it means), and now, there&amp;#8217;s a library for Functional JavaScript.And that&amp;#8217;s what you can do with it: instead of&amp;#8230;var numbers = [2, 93, 8894, 491, 7]; var sum = 0; for( var i = 0; i &amp;lt; numbers.length; i++ ) { sum += numbers[i] * 20; alert(sum); You would just say:alert( reduce( 'x+y', 0, map('*20', [2,93,8894,491,7]) ) );Okay, while this is just some loosy nonsense example, the possibilities opened up by the library are huge. Still, the greatest benefits from Functional JavaScript are higher order functions: now, even Currying or partial function application are possible!Look here:// Create functions on the fly! var divide = 'x/y'.lambda(); // Apply only one parameter and create a new function. var halve = divide.partial(_,2); alert( halve(6) ); // &amp;quot;3&amp;quot;! So&amp;#8230; This is really, really hot so far. What&amp;#8217;s missing are good functions for working with lists (or even List comprehension). Also, I&amp;#8217;d doubt that this has good performance. However, especially in web desing, while working with DOM or those things, I&amp;#8217;m sure Functional JavaScript will find it&amp;#8217;s place.Give it a try, it&amp;#8217;s hot! (And use the &amp;quot;live demo feature&amp;quot; on the site linked above!  ) [...]</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JaskellScript - the contented</dc:creator><pubDate>Mon, 23 Jul 2007 17:18:27 -0000</pubDate></item></channel></rss>