{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/10633","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/10633/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/10633/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/10633/events","html_url":"https://github.com/JuliaLang/julia/issues/10633","id":64302525,"number":10633,"title":"map(::Integer, ::Vector{Any}) throws","user":{"login":"simonster","id":470884,"avatar_url":"https://avatars.githubusercontent.com/u/470884?v=3","gravatar_id":"","url":"https://api.github.com/users/simonster","html_url":"https://github.com/simonster","followers_url":"https://api.github.com/users/simonster/followers","following_url":"https://api.github.com/users/simonster/following{/other_user}","gists_url":"https://api.github.com/users/simonster/gists{/gist_id}","starred_url":"https://api.github.com/users/simonster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonster/subscriptions","organizations_url":"https://api.github.com/users/simonster/orgs","repos_url":"https://api.github.com/users/simonster/repos","events_url":"https://api.github.com/users/simonster/events{/privacy}","received_events_url":"https://api.github.com/users/simonster/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-25T15:45:11Z","updated_at":"2015-03-26T16:26:04Z","closed_at":null,"body":"```julia\r\njulia> map(Integer, Any[1, 2])\r\nERROR: MethodError: `one` has no method matching one(::Type{Any})\r\n in map at abstractarray.jl:379\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/86603500","html_url":"https://github.com/JuliaLang/julia/issues/10633#issuecomment-86603500","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/10633","id":86603500,"user":{"login":"simonster","id":470884,"avatar_url":"https://avatars.githubusercontent.com/u/470884?v=3","gravatar_id":"","url":"https://api.github.com/users/simonster","html_url":"https://github.com/simonster","followers_url":"https://api.github.com/users/simonster/followers","following_url":"https://api.github.com/users/simonster/following{/other_user}","gists_url":"https://api.github.com/users/simonster/gists{/gist_id}","starred_url":"https://api.github.com/users/simonster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonster/subscriptions","organizations_url":"https://api.github.com/users/simonster/orgs","repos_url":"https://api.github.com/users/simonster/repos","events_url":"https://api.github.com/users/simonster/events{/privacy}","received_events_url":"https://api.github.com/users/simonster/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T16:26:04Z","updated_at":"2015-03-26T16:26:04Z","body":"Are [these methods](https://github.com/JuliaLang/julia/blob/176f9bcdc7e745560107038c6fd7333e85bb4c57/base/abstractarray.jl#L379-L381) actually necessary? On my system, they don't actually seem any faster than the general `map` method:\r\n\r\n```julia\r\njulia> x = map(Float64, rand(Int, 100000000));\r\n\r\njulia> @time for i = 1:10; map(Integer, x); end\r\nelapsed time: 2.734174725 seconds (7629 MB allocated, 1.92% gc time in 9 pauses with 1 full sweep)\r\n\r\njulia> @time for i = 1:10; invoke(map, (Any, Vector), Integer, x); end\r\nelapsed time: 2.658263088 seconds (7629 MB allocated, 0.67% gc time in 9 pauses with 0 full sweep)\r\n\r\njulia> @time for i = 1:10; map(Integer, x); end\r\nelapsed time: 2.73453461 seconds (7629 MB allocated, 0.66% gc time in 9 pauses with 0 full sweep)\r\n\r\njulia> @time for i = 1:10; invoke(map, (Any, Vector), Integer, x); end\r\nelapsed time: 2.633010239 seconds (7629 MB allocated, 0.67% gc time in 9 pauses with 0 full sweep\r\n```"}}