There are simply too many libraries out there to do them all justice within the scope of this book. Let's look at a few more libraries for functional programming in JavaScript.
Functional
Functional
is a library that includes comprehensive higher-order function support as well as string
lambdaswu.js
curryable()
function, wu.js
library is a very nice Library for functional programming. It was the first library (that I know of) to implement lazy evaluation, getting the ball rolling for Bacon.js
, Lazy.js
and other librariessloth.js
Lazy.js
libraries, but much smallerstream.js
stream.js
library supports infinite streams and not much elseLo-Dash.js
lo-dash.js
library was inspired by the underscore.js
librarySugar
Sugar
is a support library for functional programming techniques in JavaScript, like Underscore, but with some key differences in how it's implemented._.pluck(myObjs, 'value')
in Underscore, it's just myObjs.map('value')
in Sugar. This means that it modifies native JavaScript objects, so there is a small risk of it not playing nicely with other libraries that do the same such as Prototype.from.js
from.js
libraryBoiler.js
Bilby.js
library, Folktale is another new library that implements the Fantasy Land specifications. And like its forefather, Folktale is also a collection of libraries for functional programming in JavaScript. It's very young but could have a bright future.$('#mydiv').fadeIn().css('left': 50).alert('hi!');
A full explanation of this can be found in , Functional and Object-oriented Programming in JavaScript.
$('li').css('left': function(index){return index*50});
deferred.then
parameter implements a functional concept known as Promises.