{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/3853","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3853/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3853/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3853/events","html_url":"https://github.com/elixir-lang/elixir/issues/3853","id":110464871,"number":3853,"title":"Dict.size/1 should not work on Lists","user":{"login":"rebelwarrior","id":839013,"avatar_url":"https://avatars.githubusercontent.com/u/839013?v=3","gravatar_id":"","url":"https://api.github.com/users/rebelwarrior","html_url":"https://github.com/rebelwarrior","followers_url":"https://api.github.com/users/rebelwarrior/followers","following_url":"https://api.github.com/users/rebelwarrior/following{/other_user}","gists_url":"https://api.github.com/users/rebelwarrior/gists{/gist_id}","starred_url":"https://api.github.com/users/rebelwarrior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebelwarrior/subscriptions","organizations_url":"https://api.github.com/users/rebelwarrior/orgs","repos_url":"https://api.github.com/users/rebelwarrior/repos","events_url":"https://api.github.com/users/rebelwarrior/events{/privacy}","received_events_url":"https://api.github.com/users/rebelwarrior/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-08T14:33:29Z","updated_at":"2015-10-08T21:00:06Z","closed_at":null,"body":"First, The following code should not work but does:\r\n\r\n```elixir\r\nDict.size([1,2,3,4,5,6,7,8,9,0])   #=>10\r\n```\r\nAccording to Jose Valim Lists are not Dicts so this shouldn't work. The correct use would be with `Enum.count/1`\r\n\r\n```elixir\r\nEnum.count([1,2,3,4,5,6,7,8,9,0])   #=>10\r\n```\r\n\r\n~~Secondly, since an alias for `Enum.count/1` should be made to `Enum.size/1` to allow for easier discoverability on the documentation, as a search for 'size' will point you to the `Dict.size\\1` function.~~"},"comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/comments/146683526","html_url":"https://github.com/elixir-lang/elixir/issues/3853#issuecomment-146683526","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3853","id":146683526,"user":{"login":"rebelwarrior","id":839013,"avatar_url":"https://avatars.githubusercontent.com/u/839013?v=3","gravatar_id":"","url":"https://api.github.com/users/rebelwarrior","html_url":"https://github.com/rebelwarrior","followers_url":"https://api.github.com/users/rebelwarrior/followers","following_url":"https://api.github.com/users/rebelwarrior/following{/other_user}","gists_url":"https://api.github.com/users/rebelwarrior/gists{/gist_id}","starred_url":"https://api.github.com/users/rebelwarrior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebelwarrior/subscriptions","organizations_url":"https://api.github.com/users/rebelwarrior/orgs","repos_url":"https://api.github.com/users/rebelwarrior/repos","events_url":"https://api.github.com/users/rebelwarrior/events{/privacy}","received_events_url":"https://api.github.com/users/rebelwarrior/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T21:00:06Z","updated_at":"2015-10-08T21:00:06Z","body":"I had not found `lenght()` yet and it works fantastically (plus seems tailor made for lists). A `List.length()` alias would be a good idea for discoverability. Otherwise if you don't know `length()` exist, it's a little hard to find. With it being part of `List`, it would show up on iex when you hit tab. "}}