{"action":"created","comment":{"url":"https://api.github.com/repos/typelift/SwiftCheck/pulls/comments/38827851","id":38827851,"diff_hunk":"@@ -33,10 +33,8 @@ public struct Gen<A> {\n \t/// only that value.\n \t///\n \t/// The input collection is required to be non-empty.\n-\tpublic static func fromElementsOf<S : CollectionType where S.Generator.Element == A, S.Index : protocol<RandomType, BidirectionalIndexType>>(xs : S) -> Gen<A> {\n-\t\tassert(!xs.isEmpty, \"Gen.fromElementsOf used with empty sequence\")\n-\n-\t\treturn choose((xs.startIndex, xs.endIndex.predecessor())).fmap { i in\n+\tpublic static func fromElementsOf<S : Indexable where S.Index : protocol<Comparable, RandomType>>(xs : S) -> Gen<S._Element> {","path":"SwiftCheck/Gen.swift","position":8,"original_position":8,"commit_id":"8178261bd16e5294a9053b4236b24a4a3b2a5a0b","original_commit_id":"8178261bd16e5294a9053b4236b24a4a3b2a5a0b","user":{"login":"CodaFi","id":1896383,"avatar_url":"https://avatars.githubusercontent.com/u/1896383?v=3","gravatar_id":"","url":"https://api.github.com/users/CodaFi","html_url":"https://github.com/CodaFi","followers_url":"https://api.github.com/users/CodaFi/followers","following_url":"https://api.github.com/users/CodaFi/following{/other_user}","gists_url":"https://api.github.com/users/CodaFi/gists{/gist_id}","starred_url":"https://api.github.com/users/CodaFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodaFi/subscriptions","organizations_url":"https://api.github.com/users/CodaFi/orgs","repos_url":"https://api.github.com/users/CodaFi/repos","events_url":"https://api.github.com/users/CodaFi/events{/privacy}","received_events_url":"https://api.github.com/users/CodaFi/received_events","type":"User","site_admin":false},"body":"This evil is only temporary.","created_at":"2015-09-06T23:52:08Z","updated_at":"2015-09-06T23:52:08Z","html_url":"https://github.com/typelift/SwiftCheck/pull/91#discussion_r38827851","pull_request_url":"https://api.github.com/repos/typelift/SwiftCheck/pulls/91","_links":{"self":{"href":"https://api.github.com/repos/typelift/SwiftCheck/pulls/comments/38827851"},"html":{"href":"https://github.com/typelift/SwiftCheck/pull/91#discussion_r38827851"},"pull_request":{"href":"https://api.github.com/repos/typelift/SwiftCheck/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/typelift/SwiftCheck/pulls/91","id":44288384,"html_url":"https://github.com/typelift/SwiftCheck/pull/91","diff_url":"https://github.com/typelift/SwiftCheck/pull/91.diff","patch_url":"https://github.com/typelift/SwiftCheck/pull/91.patch","issue_url":"https://api.github.com/repos/typelift/SwiftCheck/issues/91","number":91,"state":"open","locked":false,"title":"Tutorial Playground","user":{"login":"CodaFi","id":1896383,"avatar_url":"https://avatars.githubusercontent.com/u/1896383?v=3","gravatar_id":"","url":"https://api.github.com/users/CodaFi","html_url":"https://github.com/CodaFi","followers_url":"https://api.github.com/users/CodaFi/followers","following_url":"https://api.github.com/users/CodaFi/following{/other_user}","gists_url":"https://api.github.com/users/CodaFi/gists{/gist_id}","starred_url":"https://api.github.com/users/CodaFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodaFi/subscriptions","organizations_url":"https://api.github.com/users/CodaFi/orgs","repos_url":"https://api.github.com/users/CodaFi/repos","events_url":"https://api.github.com/users/CodaFi/events{/privacy}","received_events_url":"https://api.github.com/users/CodaFi/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-05T18:54:42Z","updated_at":"2015-09-06T23:52:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf1ad61c232ea2170aa54f2f69c534c60ef1b83a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/typelift/SwiftCheck/pulls/91/commits","review_comments_url":"https://api.github.com/repos/typelift/SwiftCheck/pulls/91/comments","review_comment_url":"https://api.github.com/repos/typelift/SwiftCheck/pulls/comments{/number}","comments_url":"https://api.github.com/repos/typelift/SwiftCheck/issues/91/comments","statuses_url":"https://api.github.com/repos/typelift/SwiftCheck/statuses/8178261bd16e5294a9053b4236b24a4a3b2a5a0b","head":{"label":"CodaFi:Begriffsschrift","ref":"Begriffsschrift","sha":"8178261bd16e5294a9053b4236b24a4a3b2a5a0b","user":{"login":"CodaFi","id":1896383,"avatar_url":"https://avatars.githubusercontent.com/u/1896383?v=3","gravatar_id":"","url":"https://api.github.com/users/CodaFi","html_url":"https://github.com/CodaFi","followers_url":"https://api.github.com/users/CodaFi/followers","following_url":"https://api.github.com/users/CodaFi/following{/other_user}","gists_url":"https://api.github.com/users/CodaFi/gists{/gist_id}","starred_url":"https://api.github.com/users/CodaFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodaFi/subscriptions","organizations_url":"https://api.github.com/users/CodaFi/orgs","repos_url":"https://api.github.com/users/CodaFi/repos","events_url":"https://api.github.com/users/CodaFi/events{/privacy}","received_events_url":"https://api.github.com/users/CodaFi/received_events","type":"User","site_admin":false},"repo":{"id":30502307,"name":"SwiftCheck","full_name":"CodaFi/SwiftCheck","owner":{"login":"CodaFi","id":1896383,"avatar_url":"https://avatars.githubusercontent.com/u/1896383?v=3","gravatar_id":"","url":"https://api.github.com/users/CodaFi","html_url":"https://github.com/CodaFi","followers_url":"https://api.github.com/users/CodaFi/followers","following_url":"https://api.github.com/users/CodaFi/following{/other_user}","gists_url":"https://api.github.com/users/CodaFi/gists{/gist_id}","starred_url":"https://api.github.com/users/CodaFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodaFi/subscriptions","organizations_url":"https://api.github.com/users/CodaFi/orgs","repos_url":"https://api.github.com/users/CodaFi/repos","events_url":"https://api.github.com/users/CodaFi/events{/privacy}","received_events_url":"https://api.github.com/users/CodaFi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CodaFi/SwiftCheck","description":"QuickCheck for Swift","fork":true,"url":"https://api.github.com/repos/CodaFi/SwiftCheck","forks_url":"https://api.github.com/repos/CodaFi/SwiftCheck/forks","keys_url":"https://api.github.com/repos/CodaFi/SwiftCheck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodaFi/SwiftCheck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodaFi/SwiftCheck/teams","hooks_url":"https://api.github.com/repos/CodaFi/SwiftCheck/hooks","issue_events_url":"https://api.github.com/repos/CodaFi/SwiftCheck/issues/events{/number}","events_url":"https://api.github.com/repos/CodaFi/SwiftCheck/events","assignees_url":"https://api.github.com/repos/CodaFi/SwiftCheck/assignees{/user}","branches_url":"https://api.github.com/repos/CodaFi/SwiftCheck/branches{/branch}","tags_url":"https://api.github.com/repos/CodaFi/SwiftCheck/tags","blobs_url":"https://api.github.com/repos/CodaFi/SwiftCheck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodaFi/SwiftCheck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodaFi/SwiftCheck/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodaFi/SwiftCheck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodaFi/SwiftCheck/statuses/{sha}","languages_url":"https://api.github.com/repos/CodaFi/SwiftCheck/languages","stargazers_url":"https://api.github.com/repos/CodaFi/SwiftCheck/stargazers","contributors_url":"https://api.github.com/repos/CodaFi/SwiftCheck/contributors","subscribers_url":"https://api.github.com/repos/CodaFi/SwiftCheck/subscribers","subscription_url":"https://api.github.com/repos/CodaFi/SwiftCheck/subscription","commits_url":"https://api.github.com/repos/CodaFi/SwiftCheck/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodaFi/SwiftCheck/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodaFi/SwiftCheck/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodaFi/SwiftCheck/issues/comments{/number}","contents_url":"https://api.github.com/repos/CodaFi/SwiftCheck/contents/{+path}","compare_url":"https://api.github.com/repos/CodaFi/SwiftCheck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodaFi/SwiftCheck/merges","archive_url":"https://api.github.com/repos/CodaFi/SwiftCheck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodaFi/SwiftCheck/downloads","issues_url":"https://api.github.com/repos/CodaFi/SwiftCheck/issues{/number}","pulls_url":"https://api.github.com/repos/CodaFi/SwiftCheck/pulls{/number}","milestones_url":"https://api.github.com/repos/CodaFi/SwiftCheck/milestones{/number}","notifications_url":"https://api.github.com/repos/CodaFi/SwiftCheck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodaFi/SwiftCheck/labels{/name}","releases_url":"https://api.github.com/repos/CodaFi/SwiftCheck/releases{/id}","created_at":"2015-02-08T19:17:09Z","updated_at":"2015-09-06T15:04:17Z","pushed_at":"2015-09-06T15:55:39Z","git_url":"git://github.com/CodaFi/SwiftCheck.git","ssh_url":"git@github.com:CodaFi/SwiftCheck.git","clone_url":"https://github.com/CodaFi/SwiftCheck.git","svn_url":"https://github.com/CodaFi/SwiftCheck","homepage":"","size":778,"stargazers_count":6,"watchers_count":6,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":6,"default_branch":"master"}},"base":{"label":"typelift:swift-develop","ref":"swift-develop","sha":"20cfac2d6a5edbee3f1c00a366614bab8b023977","user":{"login":"typelift","id":8847821,"avatar_url":"https://avatars.githubusercontent.com/u/8847821?v=3","gravatar_id":"","url":"https://api.github.com/users/typelift","html_url":"https://github.com/typelift","followers_url":"https://api.github.com/users/typelift/followers","following_url":"https://api.github.com/users/typelift/following{/other_user}","gists_url":"https://api.github.com/users/typelift/gists{/gist_id}","starred_url":"https://api.github.com/users/typelift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typelift/subscriptions","organizations_url":"https://api.github.com/users/typelift/orgs","repos_url":"https://api.github.com/users/typelift/repos","events_url":"https://api.github.com/users/typelift/events{/privacy}","received_events_url":"https://api.github.com/users/typelift/received_events","type":"Organization","site_admin":false},"repo":{"id":22589240,"name":"SwiftCheck","full_name":"typelift/SwiftCheck","owner":{"login":"typelift","id":8847821,"avatar_url":"https://avatars.githubusercontent.com/u/8847821?v=3","gravatar_id":"","url":"https://api.github.com/users/typelift","html_url":"https://github.com/typelift","followers_url":"https://api.github.com/users/typelift/followers","following_url":"https://api.github.com/users/typelift/following{/other_user}","gists_url":"https://api.github.com/users/typelift/gists{/gist_id}","starred_url":"https://api.github.com/users/typelift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typelift/subscriptions","organizations_url":"https://api.github.com/users/typelift/orgs","repos_url":"https://api.github.com/users/typelift/repos","events_url":"https://api.github.com/users/typelift/events{/privacy}","received_events_url":"https://api.github.com/users/typelift/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/typelift/SwiftCheck","description":"QuickCheck for Swift","fork":false,"url":"https://api.github.com/repos/typelift/SwiftCheck","forks_url":"https://api.github.com/repos/typelift/SwiftCheck/forks","keys_url":"https://api.github.com/repos/typelift/SwiftCheck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/typelift/SwiftCheck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/typelift/SwiftCheck/teams","hooks_url":"https://api.github.com/repos/typelift/SwiftCheck/hooks","issue_events_url":"https://api.github.com/repos/typelift/SwiftCheck/issues/events{/number}","events_url":"https://api.github.com/repos/typelift/SwiftCheck/events","assignees_url":"https://api.github.com/repos/typelift/SwiftCheck/assignees{/user}","branches_url":"https://api.github.com/repos/typelift/SwiftCheck/branches{/branch}","tags_url":"https://api.github.com/repos/typelift/SwiftCheck/tags","blobs_url":"https://api.github.com/repos/typelift/SwiftCheck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/typelift/SwiftCheck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/typelift/SwiftCheck/git/refs{/sha}","trees_url":"https://api.github.com/repos/typelift/SwiftCheck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/typelift/SwiftCheck/statuses/{sha}","languages_url":"https://api.github.com/repos/typelift/SwiftCheck/languages","stargazers_url":"https://api.github.com/repos/typelift/SwiftCheck/stargazers","contributors_url":"https://api.github.com/repos/typelift/SwiftCheck/contributors","subscribers_url":"https://api.github.com/repos/typelift/SwiftCheck/subscribers","subscription_url":"https://api.github.com/repos/typelift/SwiftCheck/subscription","commits_url":"https://api.github.com/repos/typelift/SwiftCheck/commits{/sha}","git_commits_url":"https://api.github.com/repos/typelift/SwiftCheck/git/commits{/sha}","comments_url":"https://api.github.com/repos/typelift/SwiftCheck/comments{/number}","issue_comment_url":"https://api.github.com/repos/typelift/SwiftCheck/issues/comments{/number}","contents_url":"https://api.github.com/repos/typelift/SwiftCheck/contents/{+path}","compare_url":"https://api.github.com/repos/typelift/SwiftCheck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/typelift/SwiftCheck/merges","archive_url":"https://api.github.com/repos/typelift/SwiftCheck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/typelift/SwiftCheck/downloads","issues_url":"https://api.github.com/repos/typelift/SwiftCheck/issues{/number}","pulls_url":"https://api.github.com/repos/typelift/SwiftCheck/pulls{/number}","milestones_url":"https://api.github.com/repos/typelift/SwiftCheck/milestones{/number}","notifications_url":"https://api.github.com/repos/typelift/SwiftCheck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/typelift/SwiftCheck/labels{/name}","releases_url":"https://api.github.com/repos/typelift/SwiftCheck/releases{/id}","created_at":"2014-08-04T02:19:19Z","updated_at":"2015-09-06T16:05:10Z","pushed_at":"2015-09-06T15:55:40Z","git_url":"git://github.com/typelift/SwiftCheck.git","ssh_url":"git@github.com:typelift/SwiftCheck.git","clone_url":"https://github.com/typelift/SwiftCheck.git","svn_url":"https://github.com/typelift/SwiftCheck","homepage":"","size":1322,"stargazers_count":168,"watchers_count":168,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":10,"forks":10,"open_issues":10,"watchers":168,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/typelift/SwiftCheck/pulls/91"},"html":{"href":"https://github.com/typelift/SwiftCheck/pull/91"},"issue":{"href":"https://api.github.com/repos/typelift/SwiftCheck/issues/91"},"comments":{"href":"https://api.github.com/repos/typelift/SwiftCheck/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/typelift/SwiftCheck/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/typelift/SwiftCheck/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/typelift/SwiftCheck/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/typelift/SwiftCheck/statuses/8178261bd16e5294a9053b4236b24a4a3b2a5a0b"}}}}