{"action":"created","issue":{"url":"https://api.github.com/repos/williamngan/pt/issues/17","repository_url":"https://api.github.com/repos/williamngan/pt","labels_url":"https://api.github.com/repos/williamngan/pt/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/williamngan/pt/issues/17/comments","events_url":"https://api.github.com/repos/williamngan/pt/issues/17/events","html_url":"https://github.com/williamngan/pt/pull/17","id":169756562,"number":17,"title":"Add Util.map","user":{"login":"tofuness","id":2232877,"avatar_url":"https://avatars.githubusercontent.com/u/2232877?v=3","gravatar_id":"","url":"https://api.github.com/users/tofuness","html_url":"https://github.com/tofuness","followers_url":"https://api.github.com/users/tofuness/followers","following_url":"https://api.github.com/users/tofuness/following{/other_user}","gists_url":"https://api.github.com/users/tofuness/gists{/gist_id}","starred_url":"https://api.github.com/users/tofuness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tofuness/subscriptions","organizations_url":"https://api.github.com/users/tofuness/orgs","repos_url":"https://api.github.com/users/tofuness/repos","events_url":"https://api.github.com/users/tofuness/events{/privacy}","received_events_url":"https://api.github.com/users/tofuness/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-06T17:18:09Z","updated_at":"2016-08-13T19:28:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/williamngan/pt/pulls/17","html_url":"https://github.com/williamngan/pt/pull/17","diff_url":"https://github.com/williamngan/pt/pull/17.diff","patch_url":"https://github.com/williamngan/pt/pull/17.patch"},"body":"Same as Processing's `map` function. "},"comment":{"url":"https://api.github.com/repos/williamngan/pt/issues/comments/239637479","html_url":"https://github.com/williamngan/pt/pull/17#issuecomment-239637479","issue_url":"https://api.github.com/repos/williamngan/pt/issues/17","id":239637479,"user":{"login":"williamngan","id":4358746,"avatar_url":"https://avatars.githubusercontent.com/u/4358746?v=3","gravatar_id":"","url":"https://api.github.com/users/williamngan","html_url":"https://github.com/williamngan","followers_url":"https://api.github.com/users/williamngan/followers","following_url":"https://api.github.com/users/williamngan/following{/other_user}","gists_url":"https://api.github.com/users/williamngan/gists{/gist_id}","starred_url":"https://api.github.com/users/williamngan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamngan/subscriptions","organizations_url":"https://api.github.com/users/williamngan/orgs","repos_url":"https://api.github.com/users/williamngan/repos","events_url":"https://api.github.com/users/williamngan/events{/privacy}","received_events_url":"https://api.github.com/users/williamngan/received_events","type":"User","site_admin":false},"created_at":"2016-08-13T19:28:39Z","updated_at":"2016-08-13T19:28:39Z","body":"Sounds good. I think throwing an error makes sense -- easier to debug than\ngetting Infinity silently.\n\nThanks!\n\nOn Friday, August 12, 2016, Dennis Jin <notifications@github.com> wrote:\n\n> @williamngan <https://github.com/williamngan>\n>\n> Would be good to check for division by zero [...]\n>\n>\n>    1.\n>\n>    Maybe we should just throw an error if min1 == min2? I personally\n>    think that the function shouldn't accept a degenerate starting interval\n>    because it doesn't feel right to try and map [min1, max1] = min1 to [min2,\n>    max2].\n>    2.\n>\n>    mapToRange sounds good to me.\n>    3. I agree on adding the parentheses.\n>\n> Also, isn't there an infinite number of ways to map min1 to [min2, max2]\n> 😅?\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/williamngan/pt/pull/17#issuecomment-239481539>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AEKCWqSu4EWcAewzzxAMr3gor1sJdnNZks5qfJRjgaJpZM4JeUsT>\n> .\n>\n"}}
{"actor":{"display_login":"williamngan"}}