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

Map in chapter 4. Documentation? #198

Closed
ghost opened this issue Oct 27, 2015 · 7 comments
Closed

Map in chapter 4. Documentation? #198

ghost opened this issue Oct 27, 2015 · 7 comments

Comments

@ghost
Copy link

ghost commented Oct 27, 2015

Hello there!

I really like you guide!

So I have a question. In chapter 4 you mention the method "map" as in:
"We also have the ability to transform any function that works on single elements into a function that works on arrays simply by wrapping it with map"

Where does this map come from? It's used like it is a native javascript method, but I cannot find any documentation on it.

@ghost ghost changed the title Map in chapter 4 Map in chapter 4. Documentation? Oct 27, 2015
@ChetHarrison
Copy link

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map

On Oct 27, 2015, at 3:00 AM, Moritz Sattler [email protected] wrote:

Hello there!

I really like you guide!

So I have a question. In chapter 4 you mention the method "map" as in:
"We also have the ability to transform any function that works on single elements into a function that works on arrays simply by wrapping it with map"

Where does this map come from? It's used like it is a native javascript method, but I cannot find any documentation on it.


Reply to this email directly or view it on GitHub #198.

@ChetHarrison
Copy link

Spend some time with this!

http://reactivex.io/learnrx/ http://reactivex.io/learnrx/

On Oct 27, 2015, at 3:00 AM, Moritz Sattler [email protected] wrote:

Hello there!

I really like you guide!

So I have a question. In chapter 4 you mention the method "map" as in:
"We also have the ability to transform any function that works on single elements into a function that works on arrays simply by wrapping it with map"

Where does this map come from? It's used like it is a native javascript method, but I cannot find any documentation on it.


Reply to this email directly or view it on GitHub #198.

@ghost
Copy link
Author

ghost commented Oct 27, 2015

But this is a method of Array, as where the map in the example seems to be a function.

@ChetHarrison
Copy link

I believe Brian is referring to the Ramda implementation of map. But it is fairly trivial to roll your own. Check out the tutorial link I just sent you. You will see what I am talking about.

On Oct 27, 2015, at 8:24 AM, Moritz Sattler [email protected] wrote:

But this is a method of Array, as where the map in the example seems to be a function.


Reply to this email directly or view it on GitHub #198 (comment).

@lyyourc
Copy link

lyyourc commented Dec 1, 2015

@Moezalez
I think it's a native JavaScript method with currying, check out support.js :)

@mallowigi
Copy link

This is part of one of his libraries

@ghost
Copy link
Author

ghost commented Dec 1, 2015

I feel like this should be a little more clear

@KtorZ KtorZ closed this as completed in ab1353b Feb 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants