Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upDocumentation update for Random (map3) #915
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
process-bot
Oct 21, 2017
Thanks for the pull request! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
process-bot
commented
Oct 21, 2017
|
Thanks for the pull request! Make sure it satisfies this checklist. My human colleagues will appreciate it! Here is what to expect next, and if anyone wants to comment, keep these things in mind. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
Mar 7, 2018
Member
The examples got updated, so the new thing there is https://github.com/elm-lang/core/blob/master/src/Random.elm#L377-L403
Longer term, we'd like to add an examples/ folder to all packages such that snippets can come with an Elm file that is compiled before publication. The idea would be that you can then refer to lines from those files.
|
The examples got updated, so the new thing there is https://github.com/elm-lang/core/blob/master/src/Random.elm#L377-L403 Longer term, we'd like to add an |
dstreet26 commentedOct 21, 2017
•
edited
Edited 1 time
-
dstreet26
edited Oct 21, 2017 (most recent)
The example shows map3 being used to combine 3 generators to produce random colors.
Link to Doc
Here is more or less the error that someone would get if they tried to use the example as-is.