{"action":"created","issue":{"url":"https://api.github.com/repos/manastech/crystal/issues/1211","labels_url":"https://api.github.com/repos/manastech/crystal/issues/1211/labels{/name}","comments_url":"https://api.github.com/repos/manastech/crystal/issues/1211/comments","events_url":"https://api.github.com/repos/manastech/crystal/issues/1211/events","html_url":"https://github.com/manastech/crystal/issues/1211","id":101439007,"number":1211,"title":"Array.flatten","user":{"login":"stugol","id":1113153,"avatar_url":"https://avatars.githubusercontent.com/u/1113153?v=3","gravatar_id":"","url":"https://api.github.com/users/stugol","html_url":"https://github.com/stugol","followers_url":"https://api.github.com/users/stugol/followers","following_url":"https://api.github.com/users/stugol/following{/other_user}","gists_url":"https://api.github.com/users/stugol/gists{/gist_id}","starred_url":"https://api.github.com/users/stugol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stugol/subscriptions","organizations_url":"https://api.github.com/users/stugol/orgs","repos_url":"https://api.github.com/users/stugol/repos","events_url":"https://api.github.com/users/stugol/events{/privacy}","received_events_url":"https://api.github.com/users/stugol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-17T14:51:04Z","updated_at":"2015-08-17T15:45:49Z","closed_at":null,"body":"Ruby arrays have a 'flatten' method to consolidate nested arrays into a single array. Crystal does not, and attempts to write my own using 'inject' or recursion have failed due to issues with the unioning type system.\r\n\r\nHow would I go about implementing such a method, please?"},"comment":{"url":"https://api.github.com/repos/manastech/crystal/issues/comments/131869101","html_url":"https://github.com/manastech/crystal/issues/1211#issuecomment-131869101","issue_url":"https://api.github.com/repos/manastech/crystal/issues/1211","id":131869101,"user":{"login":"jhass","id":141294,"avatar_url":"https://avatars.githubusercontent.com/u/141294?v=3","gravatar_id":"","url":"https://api.github.com/users/jhass","html_url":"https://github.com/jhass","followers_url":"https://api.github.com/users/jhass/followers","following_url":"https://api.github.com/users/jhass/following{/other_user}","gists_url":"https://api.github.com/users/jhass/gists{/gist_id}","starred_url":"https://api.github.com/users/jhass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhass/subscriptions","organizations_url":"https://api.github.com/users/jhass/orgs","repos_url":"https://api.github.com/users/jhass/repos","events_url":"https://api.github.com/users/jhass/events{/privacy}","received_events_url":"https://api.github.com/users/jhass/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T15:45:49Z","updated_at":"2015-08-17T15:45:49Z","body":"See #1009 for some discussion around a similar issue."}}