{"action":"created","issue":{"url":"https://api.github.com/repos/hollance/swift-algorithm-club/issues/30","repository_url":"https://api.github.com/repos/hollance/swift-algorithm-club","labels_url":"https://api.github.com/repos/hollance/swift-algorithm-club/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/hollance/swift-algorithm-club/issues/30/comments","events_url":"https://api.github.com/repos/hollance/swift-algorithm-club/issues/30/events","html_url":"https://github.com/hollance/swift-algorithm-club/pull/30","id":131863122,"number":30,"title":"Priority Queue","user":{"login":"mitghi","id":4160350,"avatar_url":"https://avatars.githubusercontent.com/u/4160350?v=3","gravatar_id":"","url":"https://api.github.com/users/mitghi","html_url":"https://github.com/mitghi","followers_url":"https://api.github.com/users/mitghi/followers","following_url":"https://api.github.com/users/mitghi/following{/other_user}","gists_url":"https://api.github.com/users/mitghi/gists{/gist_id}","starred_url":"https://api.github.com/users/mitghi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitghi/subscriptions","organizations_url":"https://api.github.com/users/mitghi/orgs","repos_url":"https://api.github.com/users/mitghi/repos","events_url":"https://api.github.com/users/mitghi/events{/privacy}","received_events_url":"https://api.github.com/users/mitghi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-06T14:54:04Z","updated_at":"2016-02-06T19:05:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hollance/swift-algorithm-club/pulls/30","html_url":"https://github.com/hollance/swift-algorithm-club/pull/30","diff_url":"https://github.com/hollance/swift-algorithm-club/pull/30.diff","patch_url":"https://github.com/hollance/swift-algorithm-club/pull/30.patch"},"body":"This is a Priority Queue ( min priority oriented ) based on min-heap properties.\r\nI did not used Generics because of your note on README file, and as well droped using `self.` in instance methods.\r\n\r\nExample:\r\n\r\n    var test = PriorityQueue()\r\n    test.insert(19)\r\n    test.insert(2)\r\n    test.insert(2)\r\n    test.insert(4)\r\n    test.insert(1)\r\n    print(test.pop())\r\n    print(test.pop())\r\n    print(test.pop())\r\n    print(test.pop())\r\n    print(test.pop())\r\n    print(test.pop())\r\n    print(test.pop())\r\n    print(test.pop())\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/hollance/swift-algorithm-club/issues/comments/180839565","html_url":"https://github.com/hollance/swift-algorithm-club/pull/30#issuecomment-180839565","issue_url":"https://api.github.com/repos/hollance/swift-algorithm-club/issues/30","id":180839565,"user":{"login":"hollance","id":346853,"avatar_url":"https://avatars.githubusercontent.com/u/346853?v=3","gravatar_id":"","url":"https://api.github.com/users/hollance","html_url":"https://github.com/hollance","followers_url":"https://api.github.com/users/hollance/followers","following_url":"https://api.github.com/users/hollance/following{/other_user}","gists_url":"https://api.github.com/users/hollance/gists{/gist_id}","starred_url":"https://api.github.com/users/hollance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hollance/subscriptions","organizations_url":"https://api.github.com/users/hollance/orgs","repos_url":"https://api.github.com/users/hollance/repos","events_url":"https://api.github.com/users/hollance/events{/privacy}","received_events_url":"https://api.github.com/users/hollance/received_events","type":"User","site_admin":false},"created_at":"2016-02-06T19:05:15Z","updated_at":"2016-02-06T19:05:15Z","body":"Thanks. I'll look at this later. :-)\r\n"}}