Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functional Javascript by Michael Fogus #66

Closed
char0n opened this issue May 6, 2017 · 16 comments
Closed

Functional Javascript by Michael Fogus #66

char0n opened this issue May 6, 2017 · 16 comments
Assignees
Labels
Milestone

Comments

@char0n
Copy link
Owner

char0n commented May 6, 2017

isSet, isMap, isIndexed, isTruthy, isFalsy, isEven, isOdd, repeatedly, fnull, dispatch, hasKeys, trampoline, skipatke, pipeline, condition <-> validator pattern

@char0n char0n added the feature label May 6, 2017
@char0n char0n self-assigned this May 6, 2017
@char0n
Copy link
Owner Author

char0n commented May 19, 2017

@char0n char0n mentioned this issue Sep 10, 2017
@char0n
Copy link
Owner Author

char0n commented Sep 25, 2017

@fogus just wanted to let you know, I read your book and it was really great. I compiled the list of some of the functions you described I would like to implement them into ramda-adjunct. There are couple of more that I would to add to the list, but have them stored in my notes on the iPad. Would you mind if I do so ?

Thank you very much for the book

@fogus
Copy link

fogus commented Sep 29, 2017

I do not mind at all. Update me with a link when you get started.

@char0n
Copy link
Owner Author

char0n commented Sep 30, 2017

@fogus will sure do. Will be progressively implementing utils from the list spanning multiple releases. I can update you with every new release that will contain at least one of the utils of your design.

@char0n char0n added this to the v2.2.0 milestone Dec 9, 2017
@char0n
Copy link
Owner Author

char0n commented Dec 9, 2017

@fogus isOdd, isEvent already in v2.1.0. For next release v2.2.0, isTruthy and isFalsy is planned.

char0n added a commit that referenced this issue Dec 9, 2017
char0n added a commit that referenced this issue Dec 9, 2017
char0n added a commit that referenced this issue Dec 10, 2017
char0n added a commit that referenced this issue Dec 10, 2017
char0n added a commit that referenced this issue Dec 10, 2017
@char0n char0n mentioned this issue Jan 5, 2018
@rockymadden
Copy link
Collaborator

Thrush combinator is known as applyTo in Ramda: ramda/ramda#1847

@char0n
Copy link
Owner Author

char0n commented Jan 5, 2018

@rockymadden thrush combinator removed from list. Thanks

@char0n char0n mentioned this issue Jan 21, 2018
char0n added a commit that referenced this issue Feb 24, 2018
char0n added a commit that referenced this issue Mar 1, 2018
Undistraction pushed a commit that referenced this issue Mar 6, 2018
* feat: add dispatch

Ref #66

* style: remove exclusive test

* style(dispatch): use should sentences in tests

* refactor(dispatch): avoid creating function during runtime

* test(dispatch): add test for returning undefined

* refactor(dispatch): make accumulator more sensible

* test(dispach): add test for falsy function dispatches

* refactor(dispatch): make tests pass

* refactor(dispatch): do not handle side effects in any way

* refactor(dispatch): simplify the composition

* docs(dispatch): add documentation + typings

* test(dispatch): correct the tests

* test(dispatch): add test for implicit returns
@Undistraction
Copy link
Collaborator

@char0n Shall we get the remaining functions into their own issues?

@char0n
Copy link
Owner Author

char0n commented Mar 8, 2018

@Undistraction yep, but I need to do that (or anybody that read the @fogus book). We'll have to provide original implementation as a description for these separate issues and explanation from the book for possible usecases.

This was referenced Oct 12, 2019
@char0n
Copy link
Owner Author

char0n commented Dec 24, 2019

I've created separate issue for fnull

@char0n char0n mentioned this issue Dec 24, 2019
@char0n
Copy link
Owner Author

char0n commented Dec 24, 2019

I've created separate issue for isIndexed

@char0n
Copy link
Owner Author

char0n commented Dec 24, 2019

repeatedly is basically an alias of R.times

@char0n
Copy link
Owner Author

char0n commented Dec 24, 2019

hasKeys will not be implemented as it seems very very specialized. But can be easily implemented using R.allPass([R.has('key1'), R.has('key2')])

@char0n
Copy link
Owner Author

char0n commented Dec 24, 2019

I've created separate issue for skipTake

@char0n
Copy link
Owner Author

char0n commented Dec 24, 2019

I've create separate issue for trampoline

@char0n
Copy link
Owner Author

char0n commented Dec 24, 2019

@fogus closing this as most have been implemented and what remains has been fragmented into separate independent issues from this issue comments. Again, thank you for the book!

@char0n char0n closed this as completed Dec 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants