{"action":"created","comment":{"url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/pulls/comments/54091383","id":54091383,"diff_hunk":"@@ -51,30 +55,50 @@ main =\n   StartApp.Simple.start { model = queryParams, view = view, update = update }\n \n \n+withBlankDefault : Maybe Param -> Param\n+withBlankDefault =\n+  Maybe.withDefault ( \"\", \"\" )\n+\n+\n+safeGetAtIndex : Model -> Int -> Param\n+safeGetAtIndex model index =\n+  List.Extra.getAt model index\n+    |> withBlankDefault\n+\n+\n update : Action -> Model -> Model\n update action model =\n   case action of\n     UpdateKey ( index, newKey ) ->\n       let\n-        current =\n-          List.Extra.getAt model index\n-            |> Maybe.withDefault ( \"\", \"\" )\n-\n-        new =\n-          ( newKey, snd current )\n+        ( _, value ) =","path":"Main.elm","position":48,"original_position":48,"commit_id":"9d3acdacae6eb802dc165363f603554c55dfa1cb","original_commit_id":"9d3acdacae6eb802dc165363f603554c55dfa1cb","user":{"login":"jackfranklin","id":193238,"avatar_url":"https://avatars.githubusercontent.com/u/193238?v=3","gravatar_id":"","url":"https://api.github.com/users/jackfranklin","html_url":"https://github.com/jackfranklin","followers_url":"https://api.github.com/users/jackfranklin/followers","following_url":"https://api.github.com/users/jackfranklin/following{/other_user}","gists_url":"https://api.github.com/users/jackfranklin/gists{/gist_id}","starred_url":"https://api.github.com/users/jackfranklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackfranklin/subscriptions","organizations_url":"https://api.github.com/users/jackfranklin/orgs","repos_url":"https://api.github.com/users/jackfranklin/repos","events_url":"https://api.github.com/users/jackfranklin/events{/privacy}","received_events_url":"https://api.github.com/users/jackfranklin/received_events","type":"User","site_admin":false},"body":"In Elm we can destructure in assignments just like in ES2105, but also use `_` to denote that we don't care about that particular value.","created_at":"2016-02-25T13:07:37Z","updated_at":"2016-02-25T13:07:37Z","html_url":"https://github.com/OliverJAsh/elm-url-chrome/pull/1#discussion_r54091383","pull_request_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/pulls/comments/54091383"},"html":{"href":"https://github.com/OliverJAsh/elm-url-chrome/pull/1#discussion_r54091383"},"pull_request":{"href":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/pulls/1","id":60675269,"html_url":"https://github.com/OliverJAsh/elm-url-chrome/pull/1","diff_url":"https://github.com/OliverJAsh/elm-url-chrome/pull/1.diff","patch_url":"https://github.com/OliverJAsh/elm-url-chrome/pull/1.patch","issue_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/issues/1","number":1,"state":"open","locked":false,"title":"A bunch of refactorings","user":{"login":"jackfranklin","id":193238,"avatar_url":"https://avatars.githubusercontent.com/u/193238?v=3","gravatar_id":"","url":"https://api.github.com/users/jackfranklin","html_url":"https://github.com/jackfranklin","followers_url":"https://api.github.com/users/jackfranklin/followers","following_url":"https://api.github.com/users/jackfranklin/following{/other_user}","gists_url":"https://api.github.com/users/jackfranklin/gists{/gist_id}","starred_url":"https://api.github.com/users/jackfranklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackfranklin/subscriptions","organizations_url":"https://api.github.com/users/jackfranklin/orgs","repos_url":"https://api.github.com/users/jackfranklin/repos","events_url":"https://api.github.com/users/jackfranklin/events{/privacy}","received_events_url":"https://api.github.com/users/jackfranklin/received_events","type":"User","site_admin":false},"body":"Let me know if you have any Qs :)","created_at":"2016-02-25T13:05:46Z","updated_at":"2016-02-25T13:07:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"80ad9a7b72c9b0574de509d3b59e966ea06f67df","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/pulls/1/commits","review_comments_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/pulls/1/comments","review_comment_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/issues/1/comments","statuses_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/statuses/9d3acdacae6eb802dc165363f603554c55dfa1cb","head":{"label":"jackfranklin:master","ref":"master","sha":"9d3acdacae6eb802dc165363f603554c55dfa1cb","user":{"login":"jackfranklin","id":193238,"avatar_url":"https://avatars.githubusercontent.com/u/193238?v=3","gravatar_id":"","url":"https://api.github.com/users/jackfranklin","html_url":"https://github.com/jackfranklin","followers_url":"https://api.github.com/users/jackfranklin/followers","following_url":"https://api.github.com/users/jackfranklin/following{/other_user}","gists_url":"https://api.github.com/users/jackfranklin/gists{/gist_id}","starred_url":"https://api.github.com/users/jackfranklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackfranklin/subscriptions","organizations_url":"https://api.github.com/users/jackfranklin/orgs","repos_url":"https://api.github.com/users/jackfranklin/repos","events_url":"https://api.github.com/users/jackfranklin/events{/privacy}","received_events_url":"https://api.github.com/users/jackfranklin/received_events","type":"User","site_admin":false},"repo":{"id":52523726,"name":"elm-url-chrome","full_name":"jackfranklin/elm-url-chrome","owner":{"login":"jackfranklin","id":193238,"avatar_url":"https://avatars.githubusercontent.com/u/193238?v=3","gravatar_id":"","url":"https://api.github.com/users/jackfranklin","html_url":"https://github.com/jackfranklin","followers_url":"https://api.github.com/users/jackfranklin/followers","following_url":"https://api.github.com/users/jackfranklin/following{/other_user}","gists_url":"https://api.github.com/users/jackfranklin/gists{/gist_id}","starred_url":"https://api.github.com/users/jackfranklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackfranklin/subscriptions","organizations_url":"https://api.github.com/users/jackfranklin/orgs","repos_url":"https://api.github.com/users/jackfranklin/repos","events_url":"https://api.github.com/users/jackfranklin/events{/privacy}","received_events_url":"https://api.github.com/users/jackfranklin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jackfranklin/elm-url-chrome","description":null,"fork":true,"url":"https://api.github.com/repos/jackfranklin/elm-url-chrome","forks_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/forks","keys_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/teams","hooks_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/hooks","issue_events_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/issues/events{/number}","events_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/events","assignees_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/assignees{/user}","branches_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/branches{/branch}","tags_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/tags","blobs_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/git/refs{/sha}","trees_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/statuses/{sha}","languages_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/languages","stargazers_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/stargazers","contributors_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/contributors","subscribers_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/subscribers","subscription_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/subscription","commits_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/commits{/sha}","git_commits_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/git/commits{/sha}","comments_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/comments{/number}","issue_comment_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/issues/comments{/number}","contents_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/contents/{+path}","compare_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/merges","archive_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/downloads","issues_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/issues{/number}","pulls_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/pulls{/number}","milestones_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/milestones{/number}","notifications_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/labels{/name}","releases_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/releases{/id}","deployments_url":"https://api.github.com/repos/jackfranklin/elm-url-chrome/deployments","created_at":"2016-02-25T12:45:21Z","updated_at":"2016-02-25T12:45:22Z","pushed_at":"2016-02-25T13:05:21Z","git_url":"git://github.com/jackfranklin/elm-url-chrome.git","ssh_url":"git@github.com:jackfranklin/elm-url-chrome.git","clone_url":"https://github.com/jackfranklin/elm-url-chrome.git","svn_url":"https://github.com/jackfranklin/elm-url-chrome","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":"Elm","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OliverJAsh:master","ref":"master","sha":"e5fa902c7e9a8569aca03d91b1c2007d6ff5d0f8","user":{"login":"OliverJAsh","id":921609,"avatar_url":"https://avatars.githubusercontent.com/u/921609?v=3","gravatar_id":"","url":"https://api.github.com/users/OliverJAsh","html_url":"https://github.com/OliverJAsh","followers_url":"https://api.github.com/users/OliverJAsh/followers","following_url":"https://api.github.com/users/OliverJAsh/following{/other_user}","gists_url":"https://api.github.com/users/OliverJAsh/gists{/gist_id}","starred_url":"https://api.github.com/users/OliverJAsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OliverJAsh/subscriptions","organizations_url":"https://api.github.com/users/OliverJAsh/orgs","repos_url":"https://api.github.com/users/OliverJAsh/repos","events_url":"https://api.github.com/users/OliverJAsh/events{/privacy}","received_events_url":"https://api.github.com/users/OliverJAsh/received_events","type":"User","site_admin":false},"repo":{"id":52475303,"name":"elm-url-chrome","full_name":"OliverJAsh/elm-url-chrome","owner":{"login":"OliverJAsh","id":921609,"avatar_url":"https://avatars.githubusercontent.com/u/921609?v=3","gravatar_id":"","url":"https://api.github.com/users/OliverJAsh","html_url":"https://github.com/OliverJAsh","followers_url":"https://api.github.com/users/OliverJAsh/followers","following_url":"https://api.github.com/users/OliverJAsh/following{/other_user}","gists_url":"https://api.github.com/users/OliverJAsh/gists{/gist_id}","starred_url":"https://api.github.com/users/OliverJAsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OliverJAsh/subscriptions","organizations_url":"https://api.github.com/users/OliverJAsh/orgs","repos_url":"https://api.github.com/users/OliverJAsh/repos","events_url":"https://api.github.com/users/OliverJAsh/events{/privacy}","received_events_url":"https://api.github.com/users/OliverJAsh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/OliverJAsh/elm-url-chrome","description":null,"fork":false,"url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome","forks_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/forks","keys_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/teams","hooks_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/hooks","issue_events_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/issues/events{/number}","events_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/events","assignees_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/assignees{/user}","branches_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/branches{/branch}","tags_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/tags","blobs_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/git/refs{/sha}","trees_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/statuses/{sha}","languages_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/languages","stargazers_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/stargazers","contributors_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/contributors","subscribers_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/subscribers","subscription_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/subscription","commits_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/commits{/sha}","git_commits_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/git/commits{/sha}","comments_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/comments{/number}","issue_comment_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/issues/comments{/number}","contents_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/contents/{+path}","compare_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/merges","archive_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/downloads","issues_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/issues{/number}","pulls_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/pulls{/number}","milestones_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/milestones{/number}","notifications_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/labels{/name}","releases_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/releases{/id}","deployments_url":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/deployments","created_at":"2016-02-24T21:22:01Z","updated_at":"2016-02-24T21:22:07Z","pushed_at":"2016-02-25T13:05:47Z","git_url":"git://github.com/OliverJAsh/elm-url-chrome.git","ssh_url":"git@github.com:OliverJAsh/elm-url-chrome.git","clone_url":"https://github.com/OliverJAsh/elm-url-chrome.git","svn_url":"https://github.com/OliverJAsh/elm-url-chrome","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Elm","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/pulls/1"},"html":{"href":"https://github.com/OliverJAsh/elm-url-chrome/pull/1"},"issue":{"href":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/issues/1"},"comments":{"href":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/OliverJAsh/elm-url-chrome/statuses/9d3acdacae6eb802dc165363f603554c55dfa1cb"}}}}