Comments (5)
Hi! The paragraph below the example tries to point out that it's more complex than the compose
written above. Perhaps, we should prefix compose
with _
in those examples?
from mostly-adequate-guide.
That would make it more explicit.
I think the same should be done with this line: var reverse = reduce(function(acc, x){ return [x].concat(acc); }, []);
use _.reduce
to make it explicit that we take them from a library.
from mostly-adequate-guide.
Yeah, my current overhaul has to do with not relying on previous (or missing) definitions of functions. I'll try to find time this week to use lodash-fp or ramda as much as possible
from mostly-adequate-guide.
I really appreciate your book as I am relatively new to functional programming, it helps to make my code more readable and declarative.
One interesting feature that might be nice to add within your book, is how you integrate functional paradigms with a framework like Mithril (my favorite) or React or other libraries like paths-js or D3.js for charts, i.e. use cases/real world examples
from mostly-adequate-guide.
Thanks for the suggestions! For the compose confusion, I'm going to open an issue to replace as many custom functions with _
so we know where they're coming from and close out this one.
from mostly-adequate-guide.
Related Issues (20)
- Type safety or null safety
- help needed to run the exercises, ideally in VS Code HOT 3
- `id` function does not exist (Chapter 8)
- ch 04: 3rd exercise missing HOT 1
- Download files not accessible HOT 3
- Chapter 10, Part Laws. We don't need liftA2(concat). HOT 1
- Interesting
- Links broken on Gitbook.io
- Timeline for Part 3 (chapters 14+)
- Hey, great stuff :)
- Has this been ported over to other programming languages? HOT 2
- broken gitbook navigation HOT 2
- ch12: The result of `comp1` is not proper
- This code executes, where as per the book it should not execute - Ch08, Use Cases HOT 1
- Instructions for running Exercises are incorrect HOT 2
- Japanese Translation
- Chapter 3 why decrement hp is a pure function if it modifies input argument HOT 2
- Crashes Kobo HOT 1
- where is the chapter 14+
- In Chapter 07: Hindley-Milner and Me, why is it said that compose(head, map(f)) is faster than compose(f, head)?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mostly-adequate-guide.