Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 24, 2018. It is now read-only.

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

NotificationsYou must be signed in to change notification settings

osteele/functional-javascript

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.

Links

Original README

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/.

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

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp