Skip to content

Conversation

@kislayentronic
Copy link
Contributor

@josevalim : I tried my best to give a representation of multiple generators but I am not sure whether its up to the mark you expected. Please do a review and let me know if something else has to be changed/added/removed.
I can see you are not available on IRC but there was one more point where I am not clear which way to represent i.e. traversing. A classical example of that could be

iex> for user <- [%{name: "Me", phones: ["123", "345"]}], do: (for phone <- user.phones, do: phone) 

or the same code can be written as (without nested output)

iex> for user <- [%{name: "Me", phones: ["123", "345"]}], phone <- user.phones, do: phone 

@josevalim
Copy link
Member

The traversal case is already shown with the files example. This is great, thank you!

josevalim added a commit that referenced this pull request Sep 8, 2015
@josevalimjosevalim merged commit 12734f4 into elixir-lang:masterSep 8, 2015
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@kislayentronic@josevalim