- Notifications
You must be signed in to change notification settings - Fork45
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.
License
osteele/functional-javascript
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This code, from 2007, is deprecated. I'm keeping it available for historical interest.
Some of the ideas in this code and in its companioncollections.js were used in Jeremy Ashkenas'sUnderscore.js, which in turn inspiredLodash. Use those instead.
CoffeeScript (aso by Jeremy Ashkenas) and ECMAScript 6 also includearrow functions and functional programming functions such asmap. If you use these languages, or many other modern languages that compile into ECMAScript, you can do functional prorammming entirely within the language.
Thanks to everyone who has contributed, and to everyone who has thanked me over the years, thank you in turn.
Functional defines higher-order methods and functions for functionaland function-level programming. It also defines "string lambdas",that allow strings such asx+1 andx -> x+1 to be used in somecontexts as functions.
It is licensed under the MIT License.
For more details, seehttp://osteele.com/sources/javascript/functional/.
- Oliver Steele – original author
- Dean Edwards –
Array.slicesuggestion - henrah –
Function.lambdamemoization - Raganwald – Rhino compatibility
- Jesse Hallett – Spidermonkey shell compatibiilty
- Florian Schäfer – allow leading and trailing spaces in expressions
- Angus Croll – bug fix
About
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.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Contributors6
Uh oh!
There was an error while loading.Please reload this page.