{"comment":{"url":"https://api.github.com/repos/petertseng-dp/sticks/comments/19356707","html_url":"https://github.com/petertseng-dp/sticks/commit/8a820d8309c7ee5095235a0d36a86e35caf5c744#commitcomment-19356707","id":19356707,"user":{"login":"asterite","id":209371,"avatar_url":"https://avatars.githubusercontent.com/u/209371?v=3","gravatar_id":"","url":"https://api.github.com/users/asterite","html_url":"https://github.com/asterite","followers_url":"https://api.github.com/users/asterite/followers","following_url":"https://api.github.com/users/asterite/following{/other_user}","gists_url":"https://api.github.com/users/asterite/gists{/gist_id}","starred_url":"https://api.github.com/users/asterite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asterite/subscriptions","organizations_url":"https://api.github.com/users/asterite/orgs","repos_url":"https://api.github.com/users/asterite/repos","events_url":"https://api.github.com/users/asterite/events{/privacy}","received_events_url":"https://api.github.com/users/asterite/received_events","type":"User","site_admin":false},"position":17,"line":17,"path":"README.md","commit_id":"8a820d8309c7ee5095235a0d36a86e35caf5c744","created_at":"2016-10-10T03:37:08Z","updated_at":"2016-10-10T03:37:08Z","body":"You can use tuples:\r\n\r\n```cr\r\nh.map { |k, v| {k, v} }.to_h\r\n```\r\n\r\nTuples preserve type information, and in fact this is also more efficient because tuples are allocated on the stack.\r\n\r\nI hope it works for you :-)"}}
{"actor":{"display_login":"asterite"}}