{"action":"created","issue":{"url":"https://api.github.com/repos/nut-jnlp/100_knock/issues/16","repository_url":"https://api.github.com/repos/nut-jnlp/100_knock","labels_url":"https://api.github.com/repos/nut-jnlp/100_knock/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/nut-jnlp/100_knock/issues/16/comments","events_url":"https://api.github.com/repos/nut-jnlp/100_knock/issues/16/events","html_url":"https://github.com/nut-jnlp/100_knock/pull/16","id":190455370,"number":16,"title":"q04 を解答","user":{"login":"okayu9","id":2512724,"avatar_url":"https://avatars.githubusercontent.com/u/2512724?v=3","gravatar_id":"","url":"https://api.github.com/users/okayu9","html_url":"https://github.com/okayu9","followers_url":"https://api.github.com/users/okayu9/followers","following_url":"https://api.github.com/users/okayu9/following{/other_user}","gists_url":"https://api.github.com/users/okayu9/gists{/gist_id}","starred_url":"https://api.github.com/users/okayu9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okayu9/subscriptions","organizations_url":"https://api.github.com/users/okayu9/orgs","repos_url":"https://api.github.com/users/okayu9/repos","events_url":"https://api.github.com/users/okayu9/events{/privacy}","received_events_url":"https://api.github.com/users/okayu9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-19T00:48:02Z","updated_at":"2016-11-19T01:45:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nut-jnlp/100_knock/pulls/16","html_url":"https://github.com/nut-jnlp/100_knock/pull/16","diff_url":"https://github.com/nut-jnlp/100_knock/pull/16.diff","patch_url":"https://github.com/nut-jnlp/100_knock/pull/16.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/nut-jnlp/100_knock/issues/comments/261684311","html_url":"https://github.com/nut-jnlp/100_knock/pull/16#issuecomment-261684311","issue_url":"https://api.github.com/repos/nut-jnlp/100_knock/issues/16","id":261684311,"user":{"login":"okayu9","id":2512724,"avatar_url":"https://avatars.githubusercontent.com/u/2512724?v=3","gravatar_id":"","url":"https://api.github.com/users/okayu9","html_url":"https://github.com/okayu9","followers_url":"https://api.github.com/users/okayu9/followers","following_url":"https://api.github.com/users/okayu9/following{/other_user}","gists_url":"https://api.github.com/users/okayu9/gists{/gist_id}","starred_url":"https://api.github.com/users/okayu9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okayu9/subscriptions","organizations_url":"https://api.github.com/users/okayu9/orgs","repos_url":"https://api.github.com/users/okayu9/repos","events_url":"https://api.github.com/users/okayu9/events{/privacy}","received_events_url":"https://api.github.com/users/okayu9/received_events","type":"User","site_admin":false},"created_at":"2016-11-19T01:45:17Z","updated_at":"2016-11-19T01:45:17Z","body":"ご指摘の箇所を修正したのですが、そもそもmap & lambdaを使うまでもないことに気づいたので内包表記で書き直しました。\r\n辞書の内包表記で以下のような記述を試したのですが、構文エラーで動きませんでした。\r\n`elms = {\r\n    w[:1]: i+1 if i+1 in top_char else w[:2]: i+1\r\n    for i, w in enumerate(words)\r\n}`\r\n\r\nそのためタプルのリストを作ってから辞書に変換したのですが、もっと一般的な方法はあるんでしょうか。"}}
{"actor":{"display_login":"okayu9"}}