{"action":"created","comment":{"url":"https://api.github.com/repos/elixirschool/elixirschool/pulls/comments/156356926","pull_request_review_id":82819168,"id":156356926,"diff_hunk":"@@ -0,0 +1,192 @@\n+---\n+version: 1.3.0\n+title: Enum\n+---\n+\n+Набір алгоритмів для операцій з перечисленнями.\n+\n+{% include toc.html %}\n+\n+## Enum\n+\n+Модуль `Enum` включає в себе білшь ніж 70 функцій для роботи з перечисленнями. Всі колекції, про які ми дізналися в [попередньому уроці](../collections/), за виключенням кортежів, є перечисленнями.\n+\n+Цей урок містить лише невелику частину доступних функцій, проте ми можемо вивчити їх самостійно.\n+Давайте проведемо невеличкий експеримент в IEx.\n+\n+```elixir\n+iex> Enum.__info__(:functions) |> Enum.each(fn({function, arity}) ->\n+...>   IO.puts \"#{function}/#{arity}\"\n+...> end)\n+all?/1\n+all?/2\n+any?/1\n+any?/2\n+at/2\n+at/3\n+...\n+```\n+\n+Стає зрозуміло, що у нас є велика кількість функцій.\n+Перечислення лежить в основі функціонального програмування і є надзвичайно корисною річчю.\n+Використовуючи його в комбінації з другими особливостями Elixir, такими як документація, котра, як ми щойно побачили, являється об'єктом першого класу, можливо надзвичайно розширити можливості розробника.\n+\n+\n+Для того, щоб побачити повний список функцій - відвідайте офіційну документацію по [`Enum`](https://hexdocs.pm/elixir/Enum.html). Для лінивих перечислень скористайтеся модулем [`Stream`](https://hexdocs.pm/elixir/Stream.html).\n+\n+### all?\n+\n+При використанні `all?/2`, як і більшої частини `Enum` в цілому, ми передаємо функцію, котра буде застосовуватися до елементів колекції. У випадку з `all?/2`, якщо хоча б один елемент колекції не поверне `true` у якості результату, то результатом буде `false`:","path":"uk/lessons/basics/enum.md","position":null,"original_position":39,"commit_id":"aaf87537f2e222f4789ed10bd2ff8f0820d862ef","original_commit_id":"1fad80f503119edd11ef83a45be250be2de7b001","user":{"login":"doroshenkoss","id":34210579,"avatar_url":"https://avatars2.githubusercontent.com/u/34210579?v=4","gravatar_id":"","url":"https://api.github.com/users/doroshenkoss","html_url":"https://github.com/doroshenkoss","followers_url":"https://api.github.com/users/doroshenkoss/followers","following_url":"https://api.github.com/users/doroshenkoss/following{/other_user}","gists_url":"https://api.github.com/users/doroshenkoss/gists{/gist_id}","starred_url":"https://api.github.com/users/doroshenkoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doroshenkoss/subscriptions","organizations_url":"https://api.github.com/users/doroshenkoss/orgs","repos_url":"https://api.github.com/users/doroshenkoss/repos","events_url":"https://api.github.com/users/doroshenkoss/events{/privacy}","received_events_url":"https://api.github.com/users/doroshenkoss/received_events","type":"User","site_admin":false},"body":"Agree with you! Thanks! Your variant looks more native. I'll fix that right now.","created_at":"2017-12-12T12:52:24Z","updated_at":"2017-12-12T12:52:24Z","html_url":"https://github.com/elixirschool/elixirschool/pull/1273#discussion_r156356926","pull_request_url":"https://api.github.com/repos/elixirschool/elixirschool/pulls/1273","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/elixirschool/elixirschool/pulls/comments/156356926"},"html":{"href":"https://github.com/elixirschool/elixirschool/pull/1273#discussion_r156356926"},"pull_request":{"href":"https://api.github.com/repos/elixirschool/elixirschool/pulls/1273"}},"in_reply_to_id":156343075},"pull_request":{"url":"https://api.github.com/repos/elixirschool/elixirschool/pulls/1273","id":156160439,"html_url":"https://github.com/elixirschool/elixirschool/pull/1273","diff_url":"https://github.com/elixirschool/elixirschool/pull/1273.diff","patch_url":"https://github.com/elixirschool/elixirschool/pull/1273.patch","issue_url":"https://api.github.com/repos/elixirschool/elixirschool/issues/1273","number":1273,"state":"open","locked":false,"title":"UK translation for enum","user":{"login":"doroshenkoss","id":34210579,"avatar_url":"https://avatars2.githubusercontent.com/u/34210579?v=4","gravatar_id":"","url":"https://api.github.com/users/doroshenkoss","html_url":"https://github.com/doroshenkoss","followers_url":"https://api.github.com/users/doroshenkoss/followers","following_url":"https://api.github.com/users/doroshenkoss/following{/other_user}","gists_url":"https://api.github.com/users/doroshenkoss/gists{/gist_id}","starred_url":"https://api.github.com/users/doroshenkoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doroshenkoss/subscriptions","organizations_url":"https://api.github.com/users/doroshenkoss/orgs","repos_url":"https://api.github.com/users/doroshenkoss/repos","events_url":"https://api.github.com/users/doroshenkoss/events{/privacy}","received_events_url":"https://api.github.com/users/doroshenkoss/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-12-04T10:33:21Z","updated_at":"2017-12-12T12:52:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79010772e0b49ae5640c1133fe97e7dbee977601","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/elixirschool/elixirschool/pulls/1273/commits","review_comments_url":"https://api.github.com/repos/elixirschool/elixirschool/pulls/1273/comments","review_comment_url":"https://api.github.com/repos/elixirschool/elixirschool/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elixirschool/elixirschool/issues/1273/comments","statuses_url":"https://api.github.com/repos/elixirschool/elixirschool/statuses/aaf87537f2e222f4789ed10bd2ff8f0820d862ef","head":{"label":"doroshenkoss:UK-translation-for-enum","ref":"UK-translation-for-enum","sha":"aaf87537f2e222f4789ed10bd2ff8f0820d862ef","user":{"login":"doroshenkoss","id":34210579,"avatar_url":"https://avatars2.githubusercontent.com/u/34210579?v=4","gravatar_id":"","url":"https://api.github.com/users/doroshenkoss","html_url":"https://github.com/doroshenkoss","followers_url":"https://api.github.com/users/doroshenkoss/followers","following_url":"https://api.github.com/users/doroshenkoss/following{/other_user}","gists_url":"https://api.github.com/users/doroshenkoss/gists{/gist_id}","starred_url":"https://api.github.com/users/doroshenkoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doroshenkoss/subscriptions","organizations_url":"https://api.github.com/users/doroshenkoss/orgs","repos_url":"https://api.github.com/users/doroshenkoss/repos","events_url":"https://api.github.com/users/doroshenkoss/events{/privacy}","received_events_url":"https://api.github.com/users/doroshenkoss/received_events","type":"User","site_admin":false},"repo":{"id":112927209,"name":"elixirschool","full_name":"doroshenkoss/elixirschool","owner":{"login":"doroshenkoss","id":34210579,"avatar_url":"https://avatars2.githubusercontent.com/u/34210579?v=4","gravatar_id":"","url":"https://api.github.com/users/doroshenkoss","html_url":"https://github.com/doroshenkoss","followers_url":"https://api.github.com/users/doroshenkoss/followers","following_url":"https://api.github.com/users/doroshenkoss/following{/other_user}","gists_url":"https://api.github.com/users/doroshenkoss/gists{/gist_id}","starred_url":"https://api.github.com/users/doroshenkoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doroshenkoss/subscriptions","organizations_url":"https://api.github.com/users/doroshenkoss/orgs","repos_url":"https://api.github.com/users/doroshenkoss/repos","events_url":"https://api.github.com/users/doroshenkoss/events{/privacy}","received_events_url":"https://api.github.com/users/doroshenkoss/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/doroshenkoss/elixirschool","description":"Lessons about the Elixir programming language","fork":true,"url":"https://api.github.com/repos/doroshenkoss/elixirschool","forks_url":"https://api.github.com/repos/doroshenkoss/elixirschool/forks","keys_url":"https://api.github.com/repos/doroshenkoss/elixirschool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doroshenkoss/elixirschool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doroshenkoss/elixirschool/teams","hooks_url":"https://api.github.com/repos/doroshenkoss/elixirschool/hooks","issue_events_url":"https://api.github.com/repos/doroshenkoss/elixirschool/issues/events{/number}","events_url":"https://api.github.com/repos/doroshenkoss/elixirschool/events","assignees_url":"https://api.github.com/repos/doroshenkoss/elixirschool/assignees{/user}","branches_url":"https://api.github.com/repos/doroshenkoss/elixirschool/branches{/branch}","tags_url":"https://api.github.com/repos/doroshenkoss/elixirschool/tags","blobs_url":"https://api.github.com/repos/doroshenkoss/elixirschool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doroshenkoss/elixirschool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doroshenkoss/elixirschool/git/refs{/sha}","trees_url":"https://api.github.com/repos/doroshenkoss/elixirschool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doroshenkoss/elixirschool/statuses/{sha}","languages_url":"https://api.github.com/repos/doroshenkoss/elixirschool/languages","stargazers_url":"https://api.github.com/repos/doroshenkoss/elixirschool/stargazers","contributors_url":"https://api.github.com/repos/doroshenkoss/elixirschool/contributors","subscribers_url":"https://api.github.com/repos/doroshenkoss/elixirschool/subscribers","subscription_url":"https://api.github.com/repos/doroshenkoss/elixirschool/subscription","commits_url":"https://api.github.com/repos/doroshenkoss/elixirschool/commits{/sha}","git_commits_url":"https://api.github.com/repos/doroshenkoss/elixirschool/git/commits{/sha}","comments_url":"https://api.github.com/repos/doroshenkoss/elixirschool/comments{/number}","issue_comment_url":"https://api.github.com/repos/doroshenkoss/elixirschool/issues/comments{/number}","contents_url":"https://api.github.com/repos/doroshenkoss/elixirschool/contents/{+path}","compare_url":"https://api.github.com/repos/doroshenkoss/elixirschool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doroshenkoss/elixirschool/merges","archive_url":"https://api.github.com/repos/doroshenkoss/elixirschool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doroshenkoss/elixirschool/downloads","issues_url":"https://api.github.com/repos/doroshenkoss/elixirschool/issues{/number}","pulls_url":"https://api.github.com/repos/doroshenkoss/elixirschool/pulls{/number}","milestones_url":"https://api.github.com/repos/doroshenkoss/elixirschool/milestones{/number}","notifications_url":"https://api.github.com/repos/doroshenkoss/elixirschool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doroshenkoss/elixirschool/labels{/name}","releases_url":"https://api.github.com/repos/doroshenkoss/elixirschool/releases{/id}","deployments_url":"https://api.github.com/repos/doroshenkoss/elixirschool/deployments","created_at":"2017-12-03T12:47:01Z","updated_at":"2017-12-03T12:47:05Z","pushed_at":"2017-12-12T12:52:22Z","git_url":"git://github.com/doroshenkoss/elixirschool.git","ssh_url":"git@github.com:doroshenkoss/elixirschool.git","clone_url":"https://github.com/doroshenkoss/elixirschool.git","svn_url":"https://github.com/doroshenkoss/elixirschool","homepage":"https://elixirschool.com","size":5443,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"elixirschool:master","ref":"master","sha":"19ec7b1af8d2619fb95d15cb18ba7e69668a9609","user":{"login":"elixirschool","id":17727647,"avatar_url":"https://avatars2.githubusercontent.com/u/17727647?v=4","gravatar_id":"","url":"https://api.github.com/users/elixirschool","html_url":"https://github.com/elixirschool","followers_url":"https://api.github.com/users/elixirschool/followers","following_url":"https://api.github.com/users/elixirschool/following{/other_user}","gists_url":"https://api.github.com/users/elixirschool/gists{/gist_id}","starred_url":"https://api.github.com/users/elixirschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixirschool/subscriptions","organizations_url":"https://api.github.com/users/elixirschool/orgs","repos_url":"https://api.github.com/users/elixirschool/repos","events_url":"https://api.github.com/users/elixirschool/events{/privacy}","received_events_url":"https://api.github.com/users/elixirschool/received_events","type":"Organization","site_admin":false},"repo":{"id":36616176,"name":"elixirschool","full_name":"elixirschool/elixirschool","owner":{"login":"elixirschool","id":17727647,"avatar_url":"https://avatars2.githubusercontent.com/u/17727647?v=4","gravatar_id":"","url":"https://api.github.com/users/elixirschool","html_url":"https://github.com/elixirschool","followers_url":"https://api.github.com/users/elixirschool/followers","following_url":"https://api.github.com/users/elixirschool/following{/other_user}","gists_url":"https://api.github.com/users/elixirschool/gists{/gist_id}","starred_url":"https://api.github.com/users/elixirschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixirschool/subscriptions","organizations_url":"https://api.github.com/users/elixirschool/orgs","repos_url":"https://api.github.com/users/elixirschool/repos","events_url":"https://api.github.com/users/elixirschool/events{/privacy}","received_events_url":"https://api.github.com/users/elixirschool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elixirschool/elixirschool","description":"Lessons about the Elixir programming language","fork":false,"url":"https://api.github.com/repos/elixirschool/elixirschool","forks_url":"https://api.github.com/repos/elixirschool/elixirschool/forks","keys_url":"https://api.github.com/repos/elixirschool/elixirschool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elixirschool/elixirschool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elixirschool/elixirschool/teams","hooks_url":"https://api.github.com/repos/elixirschool/elixirschool/hooks","issue_events_url":"https://api.github.com/repos/elixirschool/elixirschool/issues/events{/number}","events_url":"https://api.github.com/repos/elixirschool/elixirschool/events","assignees_url":"https://api.github.com/repos/elixirschool/elixirschool/assignees{/user}","branches_url":"https://api.github.com/repos/elixirschool/elixirschool/branches{/branch}","tags_url":"https://api.github.com/repos/elixirschool/elixirschool/tags","blobs_url":"https://api.github.com/repos/elixirschool/elixirschool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elixirschool/elixirschool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elixirschool/elixirschool/git/refs{/sha}","trees_url":"https://api.github.com/repos/elixirschool/elixirschool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elixirschool/elixirschool/statuses/{sha}","languages_url":"https://api.github.com/repos/elixirschool/elixirschool/languages","stargazers_url":"https://api.github.com/repos/elixirschool/elixirschool/stargazers","contributors_url":"https://api.github.com/repos/elixirschool/elixirschool/contributors","subscribers_url":"https://api.github.com/repos/elixirschool/elixirschool/subscribers","subscription_url":"https://api.github.com/repos/elixirschool/elixirschool/subscription","commits_url":"https://api.github.com/repos/elixirschool/elixirschool/commits{/sha}","git_commits_url":"https://api.github.com/repos/elixirschool/elixirschool/git/commits{/sha}","comments_url":"https://api.github.com/repos/elixirschool/elixirschool/comments{/number}","issue_comment_url":"https://api.github.com/repos/elixirschool/elixirschool/issues/comments{/number}","contents_url":"https://api.github.com/repos/elixirschool/elixirschool/contents/{+path}","compare_url":"https://api.github.com/repos/elixirschool/elixirschool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elixirschool/elixirschool/merges","archive_url":"https://api.github.com/repos/elixirschool/elixirschool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elixirschool/elixirschool/downloads","issues_url":"https://api.github.com/repos/elixirschool/elixirschool/issues{/number}","pulls_url":"https://api.github.com/repos/elixirschool/elixirschool/pulls{/number}","milestones_url":"https://api.github.com/repos/elixirschool/elixirschool/milestones{/number}","notifications_url":"https://api.github.com/repos/elixirschool/elixirschool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elixirschool/elixirschool/labels{/name}","releases_url":"https://api.github.com/repos/elixirschool/elixirschool/releases{/id}","deployments_url":"https://api.github.com/repos/elixirschool/elixirschool/deployments","created_at":"2015-05-31T18:27:42Z","updated_at":"2017-12-11T16:07:04Z","pushed_at":"2017-12-12T12:52:03Z","git_url":"git://github.com/elixirschool/elixirschool.git","ssh_url":"git@github.com:elixirschool/elixirschool.git","clone_url":"https://github.com/elixirschool/elixirschool.git","svn_url":"https://github.com/elixirschool/elixirschool","homepage":"https://elixirschool.com","size":6384,"stargazers_count":1433,"watchers_count":1433,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":473,"mirror_url":null,"archived":false,"open_issues_count":85,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":473,"open_issues":85,"watchers":1433,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elixirschool/elixirschool/pulls/1273"},"html":{"href":"https://github.com/elixirschool/elixirschool/pull/1273"},"issue":{"href":"https://api.github.com/repos/elixirschool/elixirschool/issues/1273"},"comments":{"href":"https://api.github.com/repos/elixirschool/elixirschool/issues/1273/comments"},"review_comments":{"href":"https://api.github.com/repos/elixirschool/elixirschool/pulls/1273/comments"},"review_comment":{"href":"https://api.github.com/repos/elixirschool/elixirschool/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elixirschool/elixirschool/pulls/1273/commits"},"statuses":{"href":"https://api.github.com/repos/elixirschool/elixirschool/statuses/aaf87537f2e222f4789ed10bd2ff8f0820d862ef"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"doroshenkoss"}}