Commit graph

138 commits

Author SHA1 Message Date
Steve Mao
c39c733ff6
Address @i-am-tom and @shineli1984's review 2017-04-10 21:08:44 +10:00
Steve Mao
5071b5a617
Add more morphisms
I was watching @DrBoolean's [A Million Ways to Fold in JS](https://www.youtube.com/watch?v=JZSoPZUoR58) but I couldn't understand most of the morphism jargons. I presume the video is for experienced devs who are from a FP language background. The moment when I tried to search for "Catamorphism javascript" on google I couldn't get anything. I really hope there would be more in depth FP resources written in JavaScript. Luckily @i-am-tom kindly wrote up something that could be understood by JS devs like me. I have fixed a minor mistake in @i-am-tom's [original write up](https://github.com/DrBoolean/RecursionTalk/issues/2#issuecomment-292777148) and tweaked a few wording.

Also cc @joneshf @getify @shineli1984

Thanks!
2017-04-10 20:38:50 +10:00
hemanth.hm
273175df14 Merge pull request #116 from sunnypatel165/master
Added Closures
2017-04-09 20:37:10 +05:30
Sunny Patel
a07df820ca Update readme.md 2017-04-09 11:25:21 +05:30
Sunny Patel
b01d0f6cfc Update readme.md
Added closure vs lambda as suggested.
2017-04-09 10:54:48 +05:30
hemanth.hm
841ed85f81 Fixes #145 2017-03-26 12:58:48 +05:30
shfshanyue
6da52dbd2b Add Chinese 2017-03-09 22:01:03 +08:00
shfshanyue
b58ed9bea6 fix typo: middle dot 2017-03-09 19:44:07 +08:00
shfshanyue
25bd92ce94 Make easy for example of hoc 2017-03-07 16:54:47 +08:00
shfshanyue
50b46665ff fix: arrow function in setoid 2017-03-03 13:03:01 +08:00
Jethro Larson
38cd3bebb1 Extend category definition 2017-01-23 16:01:44 -08:00
Dmitri Zaitsev
1105aae3e1 Corrected definition of Category (#138) 2017-01-23 15:55:09 -08:00
Saar Wexler
1de3d692f8 Two new js libraries- mori and Immutable 2017-01-02 11:27:34 +02:00
hemanth.hm
2164426d93 Merge pull request #130 from nickzuber/master
Continuations
2017-01-02 08:27:44 +05:30
Martin Algañaraz
3f8c8a5983 Added the translation into Spanish
I have translated the document completely into Spanish, I hope you can add me to the list of translations.
Greetings and happy new year :)
2017-01-01 12:23:36 -03:00
Paweł
1341b6f672 add monet.js to functional programming libraries 2016-12-27 14:28:10 +01:00
Nicholas Zuber
e8ce4d0c17 changed wording 2016-12-23 03:29:22 -05:00
Artem Riasnianskyi
4bcf39d586 const is not constant fix
add `Object.freeze()` to object defenition in Constant section
2016-12-22 09:58:06 +01:00
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