Commit graph

252 commits

Author SHA1 Message Date
Nicholas Zuber
b8d5028816 continuations 2016-12-21 13:10:16 -05:00
Vincent Sisk
02b0546772 Update readme.md (#129) 2016-12-20 09:10:35 -08:00
Nick Zuber
b77effbd02 Added Contracts (#127)
* Added description of contracts

* Added ES6 example

* linted and toc
2016-12-19 20:28:45 -08:00
Jethro Larson
eceef7553d Using equivalent operator for functor laws
...as opposed to threequals
2016-11-04 14:57:48 -07:00
hemanth.hm
86d9603981 Merge pull request #121 from alexlafroscia/update-purity-example
Update purity example
2016-10-26 07:03:18 +05:30
Alex LaFroscia
f55916cac0 Update Purity code examples to use interpolation
Also, add in the missing argument to `greet` in the changing-global-state example code.
2016-10-25 18:22:00 -07:00
hemanth.hm
d1faf8b4f1 Added a note for ap
We've got this pr like 4 times now thinking that it's a typo.
2016-10-26 06:14:24 +05:30
Alex LaFroscia
ff29eb4abd Update the Purity example code
Reading through this, the example code for the Purity information was a bit confusing.  The original example tried to show both using and changing global state in one function, but because of that the "pure" example and "unpure" example didn't actually do the same thing.

I think it's a little more clear if the two concepts are broken up, instead showing the "pure" version, one that uses global state, and one that modifies global state.
2016-09-25 12:40:16 -07:00
Sunny Patel
9d14bcf943 Update readme.md 2016-09-18 00:22:40 +05:30
Iain Diamond
e918b396ec Update monad example (#115)
Monad description mentions 'of' function; update the example to use this.
2016-09-10 11:09:05 +05:30
Sunny Patel
a5eaf03818 Fixed typos in Closure 2016-09-09 13:35:49 +05:30
Sunny Patel
e0ae226d99 Fixed typos in Closure 2016-09-09 13:34:17 +05:30
Sunny Patel
d1f6c16a92 Adding Closure 2016-09-09 13:30:41 +05:30
Chandan Rai
52b9f361b6 corrected typo (#113) 2016-09-01 20:17:48 +05:30
Jethro Larson
a67155dd44 Added npm test for using code standards in the examples. Fixed all discrepencies. #111 (#112) 2016-08-31 05:59:53 +05:30
Daniel D. Zhang
6256c79347 fix #108 (#110) 2016-08-28 11:48:38 +05:30
Johnny Reina
eb4481cac9 Fixes a tiny spelling error under auto currying. (#107) 2016-08-23 18:53:11 +05:30
Sam Umbach
8d10ce9b32 Update Applicative Functor example (#106)
Update for consistency with commit c9590ea.
2016-08-22 10:53:32 +05:30
Gagan M
c9590ea092 #103: update Applicative Functor example (#104) 2016-08-21 11:38:31 +05:30
Jethro Larson
49a856f6b3 Moved Libraries to the bottom, added auto curry, endomorphism, some example implementations of .ap and .chain, and regenerated TOC (#102) 2016-08-14 20:33:40 +05:30
Isiah Meadows
946058d20a Update readme.md (#98)
Remove useless array from `partial` example definition
2016-08-12 09:15:27 +05:30
pinggod
82e18f311f Update the code snippet of purity (#99)
a). Initialization is a essential operation in `const` declaration
b). `let` is more accurate to express `mutable state`
2016-08-12 09:15:15 +05:30
Steven Syrek
b29559cc0b Did some light copy editing of the introductory text and added a list of FP libraries (#96)
* Copy edit introductory text and add list of FP libraries

* Make FP libraries list conform to style for translations list
2016-08-02 10:22:35 +05:30
Alex M
8839023886 Added Portuguese link and "contents" (#92)
* Added Portuguese link and "contents"

* Trying to fix add portuguese and contents

* Trying to fix add portuguese and contents 2
2016-08-01 21:39:03 +05:30
Jethro Larson
a8734e931f Moved the JavaScript justification over to a wiki. (#88) 2016-07-30 00:37:11 +05:30
Jethro Larson
5f9cdd6b3d Added Lambda and Lambda Calculus #87 (#89) 2016-07-30 00:36:57 +05:30
Jethro Larson
4cd9112fbb Added links to ramda's awesome type signature documentation and a SO describing Hindley-Milner (#85)
Adjusted wording of the PS
2016-07-27 13:24:27 +05:30
Jethro Larson
da2cca182d Used Array.of for pointed functor definition #77 (#86)
Also adjusted monoid description until my kid could understand it.
2016-07-27 13:23:47 +05:30
Paul Bone
bc895ef56f Write a more complete introduction. (#81)
* Write a more complete introduction.

This introduction introduces why this glossary is important and that the
examples are in JavaScript syntax.

* Mention that ES2015 is used.
2016-07-27 11:28:15 +05:30
Bob Whitelock
44cf9194b9 Use consistent variable declarations (#84)
Not a big deal, but generally when writing ES2015+ it's preferable to use `const` where possible for variable declarations, as it provides a guarantee to the reader that you won't change what the variable references, and preference `let` over `var` otherwise , as this at least guarantees that the variable will be block-scoped rather than function-scoped. Being inconsistent with this means readers must sometimes have to consider whether a difference is there for a reason or not.
2016-07-27 11:26:31 +05:30
Jethro Larson
2b2d07958f Updated Applicative and Lift to partially address recent feedback (#74) 2016-07-27 11:26:19 +05:30
Renaud TERTRAIS
102809f9e2 Add an another example for lift (#79)
I found it quite confusing at first sight. Perhaps it would be useful for futur readers to have a second example.
2016-07-26 19:30:57 +05:30
Jethro Larson
b0b210248c Update definition of partial application (#75) 2016-07-26 14:32:34 +05:30
hemanth.hm
ab7d286329 WIP link. 2016-07-26 11:29:40 +05:30
David Zukowski
31544b98f6 Standardize and fix equality strictness in Setoid (#66) 2016-07-26 11:10:31 +05:30
G. Kay Lee
a033852fca Update readme.md (#65)
Refined the Functor section
2016-07-25 21:33:43 +05:30
Florian
6641c2c27c correct plural of parenthesis (#68) 2016-07-25 21:13:25 +05:30
hemanth.hm
4e69ee2adf Merge pull request #63 from galopezb/patch-1
Typo in function composition section
2016-07-25 10:17:02 +05:30
hemanth.hm
f90841a2d7 Merge pull request #64 from earldouglas/side-effects
Expand side effects to include reading external mutable state
2016-07-25 10:16:50 +05:30
James Earl Douglas
b0e8112cac Expand side effects to include reading external mutable state 2016-07-24 22:36:55 -06:00
Gustavo A López
e536145dd1 Typo in function composition section 2016-07-24 19:25:55 -05:00
hemanth.hm
98fbaff76b Merge pull request #54 from jethrolarson/pred
Added definition for predicate.
2016-07-15 09:12:56 +05:30
jethro larson
67c71526de Added definition for predicate. 2016-07-14 14:52:07 -07:00
hemanth.hm
9397e16816 Merge pull request #52 from neighborhood999/patch-1
use `let` instead of `var` in for loop.
2016-06-19 19:02:05 +05:30
Peng-Jie
6be57b6ce9 use let instead of var in for loop. 2016-06-19 20:20:09 +08:00
hemanth.hm
b75d101c0f Create LICENSE 2016-06-12 12:39:36 +05:30
hemanth.hm
854d3c4520 Merge pull request #51 from jethrolarson/blockquote
Removed blockquotes #11
2016-06-11 20:05:10 +05:30
jethro larson
13de2a5df9 Removed blockquotes #11
Removed superflous <hr/>s
Added gitignore for build directory
2016-06-10 10:32:27 -07:00
hemanth.hm
b528aa9adc Merge pull request #43 from brunops/fix-comonad-example
Fix Comonad example
2016-06-10 11:20:25 +05:30
hemanth.hm
6d8db7fb0a Merge pull request #44 from marcusnielsen/patch-1
Fix spelling of "two two"
2016-06-10 10:37:04 +05:30