{"action":"opened","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/14916","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/14916/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/14916/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/14916/events","html_url":"https://github.com/JuliaLang/julia/issues/14916","id":130799833,"number":14916,"title":"shorthand loops result in type::Any","user":{"login":"ipozdeev","id":16906484,"avatar_url":"https://avatars.githubusercontent.com/u/16906484?v=3","gravatar_id":"","url":"https://api.github.com/users/ipozdeev","html_url":"https://github.com/ipozdeev","followers_url":"https://api.github.com/users/ipozdeev/followers","following_url":"https://api.github.com/users/ipozdeev/following{/other_user}","gists_url":"https://api.github.com/users/ipozdeev/gists{/gist_id}","starred_url":"https://api.github.com/users/ipozdeev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipozdeev/subscriptions","organizations_url":"https://api.github.com/users/ipozdeev/orgs","repos_url":"https://api.github.com/users/ipozdeev/repos","events_url":"https://api.github.com/users/ipozdeev/events{/privacy}","received_events_url":"https://api.github.com/users/ipozdeev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-02T20:03:36Z","updated_at":"2016-02-02T20:03:36Z","closed_at":null,"body":"Hi all,\r\n\r\nwhen I'm trying to construct a simple autoregressive variable in a shorthand loop:\r\n```\r\nu = randn(10);\r\ne = u;\r\ne = [t == 1 ? u[t] : e[t-1]*0.8 + u[t] for t = 1:10]\r\n```\r\ne is suddenly of type \"Array{Any,10}\", though u is of type \"Vector{Float64,10} which later messes up with plots. Hence a question: what causes this and how can I get a Float64 representation without resorting to a \"usual\" loop (which works fine, btw).\r\n\r\nOn a side note, how do I convert a Vector of \"Any\" type to a Vector of type \"Float64\"?\r\n\r\nThanks.\r\n\r\n\\igor\r\n\r\n"}}