{"action":"opened","issue":{"url":"https://api.github.com/repos/gitslaton/ProgLangAssignments/issues/41","repository_url":"https://api.github.com/repos/gitslaton/ProgLangAssignments","labels_url":"https://api.github.com/repos/gitslaton/ProgLangAssignments/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/gitslaton/ProgLangAssignments/issues/41/comments","events_url":"https://api.github.com/repos/gitslaton/ProgLangAssignments/issues/41/events","html_url":"https://github.com/gitslaton/ProgLangAssignments/issues/41","id":132027134,"number":41,"title":"implement temp_compare ","user":{"login":"gitslaton","id":10524611,"avatar_url":"https://avatars.githubusercontent.com/u/10524611?v=3","gravatar_id":"","url":"https://api.github.com/users/gitslaton","html_url":"https://github.com/gitslaton","followers_url":"https://api.github.com/users/gitslaton/followers","following_url":"https://api.github.com/users/gitslaton/following{/other_user}","gists_url":"https://api.github.com/users/gitslaton/gists{/gist_id}","starred_url":"https://api.github.com/users/gitslaton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitslaton/subscriptions","organizations_url":"https://api.github.com/users/gitslaton/orgs","repos_url":"https://api.github.com/users/gitslaton/repos","events_url":"https://api.github.com/users/gitslaton/events{/privacy}","received_events_url":"https://api.github.com/users/gitslaton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-07T23:55:57Z","updated_at":"2016-02-07T23:55:57Z","closed_at":null,"body":"(*\r\n   Write a function `temp_compare` that takes as input a pair of temperatures and\r\n   \"compares\" them, returning 1 if the first temperature is higher, 0 if they are\r\n   equal and -1 if the second temperature is higher.\r\n   Type: temp * temp -> int\r\n*)\r\n\r\nuse an auxillariy function to do the comparison instead of rewriting it for every match\r\n\r\nmore efficient to do (F f1, t) -> check what t is and compare\r\n                               (C c1, t) -> check what t is and compare \r\nthan checking every possible pairing of F and C values \r\n"}}