Is anyone using Oliver Steele's functional JavaScript library along with MK?

 

It has the basic functional programming constructs like map, reduce, etc.
but rather than pass in function pointers (which you can do as well), you
can specify 'string lambdas' that embody what it is you are trying to do;
for example:

 

map(function(x) { return x+1 }, [1,2,3]);

 

can be written:

 

map('x -> x+1', [1,2,3]);

 

or more succinctly:

 

map('x+1', [1,2,3]);

 

 

There is much more to it than this quick and simple example; he wrote a blog
entry about it here:

HYPERLINK
"http://osteele.com/archives/2007/07/functional-javascript"http://osteeleco
m/archives/2007/07/functional-javascript

 

The project's page:

HYPERLINK
"http://osteele.com/sources/javascript/functional/"http://osteele.com/source
s/javascript/functional/

 

Just wondering if there is any ideas here that may be useful for use within
MK and whether anyone has already started using this library with MK. The
full source is 33K but I was able to get it down to 9K with an obfuscation
tool.

 

Jason Bunting

 


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.19/918 - Release Date: 7/25/2007
2:55 PM
 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to