Skip to content
Functional is a library for functional programming in JavaScript. It defines the standard higher-order functions such as map, reduce (aka foldl), and select (aka filter). It also defines functions such as curry, rcurry, and partial for partial function application; and compose, guard, and until for function-level programming.
JavaScript Ruby
Latest commit 3991d2b Mar 17, 2013 @osteele Merge pull request #8 from hannesm/fix-rcurry-comment
fix comment describing rcurry
Failed to load latest commit information.
.gitignore .hgignore -> .gitignore Feb 14, 2008
.hgtags Added tag working for changeset d216a82e7c18 Sep 7, 2007
CHANGES move functional/* -> . Nov 11, 2007
MIT-LICENSE move functional/* -> . Nov 11, 2007
README
Rakefile update publish task Feb 14, 2008
agenda.txt remove .htaccess; minor tweaks Nov 11, 2007
evaluator-frame.html move functional/* -> . Nov 11, 2007
evaluator.css move functional/* -> . Nov 11, 2007
evaluator.js emulate Prototype, for examples Feb 14, 2008
examples.js emulate Prototype, for examples Feb 14, 2008
functional.js fix comment describing rcurry Mar 13, 2013
functional.txt move functional/* -> . Nov 11, 2007
iframe-test.html move functional/* -> . Nov 11, 2007
index.html add note about dojo Apr 9, 2009
index.js emulate Prototype, for examples Feb 14, 2008
styles.css update to prototype 1.6; factor +styles.css Nov 14, 2007
tests.html Fixes for tests. Apr 8, 2009
tests.js Fixes for tests. Apr 8, 2009
to-function.js Add "true", "false", "null" and "undefined" to protected identifiers. Oct 25, 2012

README

Functional defines higher-order methods and functions for functional
and function-level programming.  It also defines "string lambdas",
that allow strings such as `x+1` and `x -> x+1` to be used in some
contexts as functions.

It is licensed under the MIT License.

For more details, see http://osteele.com/sources/javascript/functional/ .

Credits:
- Oliver Steele -- original author
- Dean Edwards -- Array.slice suggestion
- henrah -- Function.lambda memoization
- Raganwald -- Rhino compatibility
- Jesse Hallett -- Spidermonkey shell compatibiilty
- Florian Schäfer -- allow leading and trailing spaces in expressions
- Angus Croll -- bug fix
 
Something went wrong with that request. Please try again.