a functional programming library for javascript. an experiment in elegant JS.
JavaScript TeX CSS
Latest commit 81fe5dd Aug 6, 2014 @fogus string
Permalink
Failed to load latest commit information.
docs string Aug 7, 2014
examples Starting to demutate Dec 3, 2013
lib Simplify testing. Feb 19, 2014
test Fixed L.rot to be more Forth-like Oct 1, 2013
.gitignore Simplify testing. Feb 19, 2014
LICENSE Added MIT license May 30, 2013
README.md Bumping version Oct 3, 2013
package.json Simplify testing. Feb 19, 2014
testem.yml Simplify testing. Feb 19, 2014

README.md

lemonad

A functional programming library for JavaScript inspired by Clojure, Haskell, SML and Forth.

lemonad

Using

Add the following to your 'package.json' file in the "dependencies" section:

"lemonad": "0.7.4"

Currently available functions

[ '$',
  'CAS',
  'CASMixin',
  'L',
  'Hole',
  'RefMixin',
  'VERSION',
  'WatchableMixin',
  'actions',
  'addWatch',
  'checker',
  'compareAndSwap',
  'ctor',
  'curry',
  'curry2',
  'curry3',
  'curry4',
  'dec',
  'dispatcher',
  'eq',
  'filter',
  'gt',
  'gte',
  'invokeAll',
  'is',
  'isArguments',
  'isArray',
  'isObject',
  'isReference',
  'isString',
  'lift',
  'lt',
  'lte',
  'map',
  'meth',
  'invoker',
  'walterWhite',
  'mix',
  'nth',
  'partial1',
  'partial2',
  'pipeline',
  'rcurry',
  'rcurry2',
  'rcurry3',
  'rcurry4',
  'reduce', 
  'removeWatch',
  'rot',
  'setValue',
  'swap', 
  'typed' ]

Influences / References

Todo

  • The rest of the things
  • Promises/A-compatible functions (http://wiki.commonjs.org/wiki/Promises/A)
  • Moar monadology
  • Logic vars?
  • Unification?
  • Other things that I can't think of right now
  • Generators / iterators?
  • Futures?
  • Laziness?
  • Badass memoize
  • Some data generators?
  • merges
  • walking
  • rel alg
  • into for objects
  • make sure that anything that works for array also works for arguments
  • Make sure I say, sequence on input and array on output
  • yggdrasil
  • undermine
  • reb
  • cljs
  • tables
  • bach.js
  • datalog
  • poems
  • shape decls
  • cheatsheet
  • site

License

This software is provided as-is under the MIT license.