GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - osteele/functional-javascript: 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.

This repository was archived by the owner on Jun 24, 2018. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

181 Commits
181 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
.hgtags
.hgtags
 
 
CHANGES
CHANGES
 
 
MIT-LICENSE
MIT-LICENSE
 
 
README
README
 
 
README.md
README.md
 
 
Rakefile
Rakefile
 
 
agenda.txt
agenda.txt
 
 
evaluator-frame.html
evaluator-frame.html
 
 
evaluator.css
evaluator.css
 
 
evaluator.js
evaluator.js
 
 
examples.js
examples.js
 
 
functional.js
functional.js
 
 
functional.txt
functional.txt
 
 
iframe-test.html
iframe-test.html
 
 
index.html
index.html
 
 
index.js
index.js
 
 
styles.css
styles.css
 
 
tests.html
tests.html
 
 
tests.js
tests.js
 
 
to-function.js
to-function.js
 
 

Repository files navigation

Functional JavaScript (deprecated)

This code, from 2007, is deprecated. I'm keeping it available for historical interest.

Some of the ideas in this code and in its companion collections.js were used in Jeremy Ashkenas's Underscore.js, which in turn inspired Lodash. Use those instead.

CoffeeScript (aso by Jeremy Ashkenas) and ECMAScript 6 also include arrow functions and functional programming functions such as map. 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

  • Demo page
  • Announcement
  • Original README file (also below)
  • Original repo (Google Code)

Original 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

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.

osteele.com/sources/javascript/functional/

Topics

functional-programmingjavascript-library

Resources

Readme
MIT license
Activity

Stars

378 stars

Watchers

1 watching

Forks

45 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.