October 2014
Intermediate to advanced
280 pages
7h 20m
English
Our next transformation is to extract the first count entries from the list. Rather than write a function, we’ll use the built-in Enum.take:
| | def process({user, project, count}) do |
| | Issues.GithubIssues.fetch(user, project) |
| | |> decode_response |
| | |> convert_to_list_of_hashdicts |
| | |> sort_into_ascending_order |
* | |> Enum.take(count) |
| | end |
Read now
Unlock full access