{"action":"created","comment":{"url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/pulls/comments/24772307","id":24772307,"diff_hunk":"@@ -552,10 +552,41 @@ public func mergeMap<T, U>(transform: T -> SignalProducer<U>)(producer: SignalPr\n public func switch<T>(producer: SignalProducer<SignalProducer<T>>) -> SignalProducer<T>\n public func switchMap<T, U>(transform: T -> SignalProducer<U>)(producer: SignalProducer<T>) -> SignalProducer<U>\n \n-public func repeat<T>(count: Int)(producer: SignalProducer<T>) -> SignalProducer<T>\n public func retry<T>(count: Int)(producer: SignalProducer<T>) -> SignalProducer<T>\n */\n \n+/// Repeats `producer` a total of `count` times.\n+/// Repeating `1` times results in a equivalent signal producer.\n+public func times<T, E>(count: Int)(producer: SignalProducer<T, E>) -> SignalProducer<T, E> {\n+\tprecondition(count >= 1)\n+","path":"ReactiveCocoa/Swift/SignalProducer.swift","position":12,"original_position":12,"commit_id":"8e1080734ec59c8d74839f2e2b0e4c67fe71f560","original_commit_id":"8e1080734ec59c8d74839f2e2b0e4c67fe71f560","user":{"login":"NachoSoto","id":685609,"avatar_url":"https://avatars.githubusercontent.com/u/685609?v=3","gravatar_id":"","url":"https://api.github.com/users/NachoSoto","html_url":"https://github.com/NachoSoto","followers_url":"https://api.github.com/users/NachoSoto/followers","following_url":"https://api.github.com/users/NachoSoto/following{/other_user}","gists_url":"https://api.github.com/users/NachoSoto/gists{/gist_id}","starred_url":"https://api.github.com/users/NachoSoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NachoSoto/subscriptions","organizations_url":"https://api.github.com/users/NachoSoto/orgs","repos_url":"https://api.github.com/users/NachoSoto/repos","events_url":"https://api.github.com/users/NachoSoto/events{/privacy}","received_events_url":"https://api.github.com/users/NachoSoto/received_events","type":"User","site_admin":false},"body":"True! changed","created_at":"2015-02-16T19:56:36Z","updated_at":"2015-02-16T19:56:36Z","html_url":"https://github.com/ReactiveCocoa/ReactiveCocoa/pull/1760#discussion_r24772307","pull_request_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/pulls/1760","_links":{"self":{"href":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/pulls/comments/24772307"},"html":{"href":"https://github.com/ReactiveCocoa/ReactiveCocoa/pull/1760#discussion_r24772307"},"pull_request":{"href":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/pulls/1760"}}},"pull_request":{"url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/pulls/1760","id":29326890,"html_url":"https://github.com/ReactiveCocoa/ReactiveCocoa/pull/1760","diff_url":"https://github.com/ReactiveCocoa/ReactiveCocoa/pull/1760.diff","patch_url":"https://github.com/ReactiveCocoa/ReactiveCocoa/pull/1760.patch","issue_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/1760","number":1760,"state":"open","locked":false,"title":"Implemented times for SignalProducer","user":{"login":"NachoSoto","id":685609,"avatar_url":"https://avatars.githubusercontent.com/u/685609?v=3","gravatar_id":"","url":"https://api.github.com/users/NachoSoto","html_url":"https://github.com/NachoSoto","followers_url":"https://api.github.com/users/NachoSoto/followers","following_url":"https://api.github.com/users/NachoSoto/following{/other_user}","gists_url":"https://api.github.com/users/NachoSoto/gists{/gist_id}","starred_url":"https://api.github.com/users/NachoSoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NachoSoto/subscriptions","organizations_url":"https://api.github.com/users/NachoSoto/orgs","repos_url":"https://api.github.com/users/NachoSoto/repos","events_url":"https://api.github.com/users/NachoSoto/events{/privacy}","received_events_url":"https://api.github.com/users/NachoSoto/received_events","type":"User","site_admin":false},"body":"Completes part of #1751.","created_at":"2015-02-14T22:57:57Z","updated_at":"2015-02-16T19:56:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f12614b1b59cf70cb0bb2f7f1d9fdf249bfdcc56","assignee":{"login":"jspahrsummers","id":432536,"avatar_url":"https://avatars.githubusercontent.com/u/432536?v=3","gravatar_id":"","url":"https://api.github.com/users/jspahrsummers","html_url":"https://github.com/jspahrsummers","followers_url":"https://api.github.com/users/jspahrsummers/followers","following_url":"https://api.github.com/users/jspahrsummers/following{/other_user}","gists_url":"https://api.github.com/users/jspahrsummers/gists{/gist_id}","starred_url":"https://api.github.com/users/jspahrsummers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jspahrsummers/subscriptions","organizations_url":"https://api.github.com/users/jspahrsummers/orgs","repos_url":"https://api.github.com/users/jspahrsummers/repos","events_url":"https://api.github.com/users/jspahrsummers/events{/privacy}","received_events_url":"https://api.github.com/users/jspahrsummers/received_events","type":"User","site_admin":true},"milestone":{"url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/milestones/4","labels_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/milestones/4/labels","id":393809,"number":4,"title":"3.0","description":"Rethinking some of the [bigger underlying concepts in RAC](https://gist.github.com/jspahrsummers/7000136), particularly those inspired by Rx.\r\n\r\nHowever, we need to take backwards compatibility more seriously than we did for 1.x → 2.0, since our long-time users have already gone through that hellish migration, and we've gained even more users since then.","creator":{"login":"jspahrsummers","id":432536,"avatar_url":"https://avatars.githubusercontent.com/u/432536?v=3","gravatar_id":"","url":"https://api.github.com/users/jspahrsummers","html_url":"https://github.com/jspahrsummers","followers_url":"https://api.github.com/users/jspahrsummers/followers","following_url":"https://api.github.com/users/jspahrsummers/following{/other_user}","gists_url":"https://api.github.com/users/jspahrsummers/gists{/gist_id}","starred_url":"https://api.github.com/users/jspahrsummers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jspahrsummers/subscriptions","organizations_url":"https://api.github.com/users/jspahrsummers/orgs","repos_url":"https://api.github.com/users/jspahrsummers/repos","events_url":"https://api.github.com/users/jspahrsummers/events{/privacy}","received_events_url":"https://api.github.com/users/jspahrsummers/received_events","type":"User","site_admin":true},"open_issues":24,"closed_issues":203,"state":"open","created_at":"2013-08-04T02:52:56Z","updated_at":"2015-02-16T04:58:42Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/pulls/1760/commits","review_comments_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/pulls/1760/comments","review_comment_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/1760/comments","statuses_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/statuses/8e1080734ec59c8d74839f2e2b0e4c67fe71f560","head":{"label":"NachoSoto:signal-producer-repeat","ref":"signal-producer-repeat","sha":"8e1080734ec59c8d74839f2e2b0e4c67fe71f560","user":{"login":"NachoSoto","id":685609,"avatar_url":"https://avatars.githubusercontent.com/u/685609?v=3","gravatar_id":"","url":"https://api.github.com/users/NachoSoto","html_url":"https://github.com/NachoSoto","followers_url":"https://api.github.com/users/NachoSoto/followers","following_url":"https://api.github.com/users/NachoSoto/following{/other_user}","gists_url":"https://api.github.com/users/NachoSoto/gists{/gist_id}","starred_url":"https://api.github.com/users/NachoSoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NachoSoto/subscriptions","organizations_url":"https://api.github.com/users/NachoSoto/orgs","repos_url":"https://api.github.com/users/NachoSoto/repos","events_url":"https://api.github.com/users/NachoSoto/events{/privacy}","received_events_url":"https://api.github.com/users/NachoSoto/received_events","type":"User","site_admin":false},"repo":{"id":30810172,"name":"ReactiveCocoa","full_name":"NachoSoto/ReactiveCocoa","owner":{"login":"NachoSoto","id":685609,"avatar_url":"https://avatars.githubusercontent.com/u/685609?v=3","gravatar_id":"","url":"https://api.github.com/users/NachoSoto","html_url":"https://github.com/NachoSoto","followers_url":"https://api.github.com/users/NachoSoto/followers","following_url":"https://api.github.com/users/NachoSoto/following{/other_user}","gists_url":"https://api.github.com/users/NachoSoto/gists{/gist_id}","starred_url":"https://api.github.com/users/NachoSoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NachoSoto/subscriptions","organizations_url":"https://api.github.com/users/NachoSoto/orgs","repos_url":"https://api.github.com/users/NachoSoto/repos","events_url":"https://api.github.com/users/NachoSoto/events{/privacy}","received_events_url":"https://api.github.com/users/NachoSoto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NachoSoto/ReactiveCocoa","description":"A framework for composing and transforming streams of values","fork":true,"url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa","forks_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/forks","keys_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/teams","hooks_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/hooks","issue_events_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/issues/events{/number}","events_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/events","assignees_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/assignees{/user}","branches_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/branches{/branch}","tags_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/tags","blobs_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/git/refs{/sha}","trees_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/statuses/{sha}","languages_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/languages","stargazers_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/stargazers","contributors_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/contributors","subscribers_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/subscribers","subscription_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/subscription","commits_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/commits{/sha}","git_commits_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/git/commits{/sha}","comments_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/comments{/number}","issue_comment_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/issues/comments/{number}","contents_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/contents/{+path}","compare_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/merges","archive_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/downloads","issues_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/issues{/number}","pulls_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/pulls{/number}","milestones_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/milestones{/number}","notifications_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/labels{/name}","releases_url":"https://api.github.com/repos/NachoSoto/ReactiveCocoa/releases{/id}","created_at":"2015-02-14T22:03:23Z","updated_at":"2015-02-14T22:03:25Z","pushed_at":"2015-02-16T19:49:27Z","git_url":"git://github.com/NachoSoto/ReactiveCocoa.git","ssh_url":"git@github.com:NachoSoto/ReactiveCocoa.git","clone_url":"https://github.com/NachoSoto/ReactiveCocoa.git","svn_url":"https://github.com/NachoSoto/ReactiveCocoa","homepage":"","size":12446,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"ReactiveCocoa:swift-development","ref":"swift-development","sha":"2112fd2e2ff369535147efc8eea71a61c5e6eee0","user":{"login":"ReactiveCocoa","id":3422977,"avatar_url":"https://avatars.githubusercontent.com/u/3422977?v=3","gravatar_id":"","url":"https://api.github.com/users/ReactiveCocoa","html_url":"https://github.com/ReactiveCocoa","followers_url":"https://api.github.com/users/ReactiveCocoa/followers","following_url":"https://api.github.com/users/ReactiveCocoa/following{/other_user}","gists_url":"https://api.github.com/users/ReactiveCocoa/gists{/gist_id}","starred_url":"https://api.github.com/users/ReactiveCocoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReactiveCocoa/subscriptions","organizations_url":"https://api.github.com/users/ReactiveCocoa/orgs","repos_url":"https://api.github.com/users/ReactiveCocoa/repos","events_url":"https://api.github.com/users/ReactiveCocoa/events{/privacy}","received_events_url":"https://api.github.com/users/ReactiveCocoa/received_events","type":"Organization","site_admin":false},"repo":{"id":3606624,"name":"ReactiveCocoa","full_name":"ReactiveCocoa/ReactiveCocoa","owner":{"login":"ReactiveCocoa","id":3422977,"avatar_url":"https://avatars.githubusercontent.com/u/3422977?v=3","gravatar_id":"","url":"https://api.github.com/users/ReactiveCocoa","html_url":"https://github.com/ReactiveCocoa","followers_url":"https://api.github.com/users/ReactiveCocoa/followers","following_url":"https://api.github.com/users/ReactiveCocoa/following{/other_user}","gists_url":"https://api.github.com/users/ReactiveCocoa/gists{/gist_id}","starred_url":"https://api.github.com/users/ReactiveCocoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReactiveCocoa/subscriptions","organizations_url":"https://api.github.com/users/ReactiveCocoa/orgs","repos_url":"https://api.github.com/users/ReactiveCocoa/repos","events_url":"https://api.github.com/users/ReactiveCocoa/events{/privacy}","received_events_url":"https://api.github.com/users/ReactiveCocoa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ReactiveCocoa/ReactiveCocoa","description":"A framework for composing and transforming streams of values","fork":false,"url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa","forks_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/forks","keys_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/teams","hooks_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/hooks","issue_events_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/events{/number}","events_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/events","assignees_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/assignees{/user}","branches_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/branches{/branch}","tags_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/tags","blobs_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/git/refs{/sha}","trees_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/statuses/{sha}","languages_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/languages","stargazers_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/stargazers","contributors_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/contributors","subscribers_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/subscribers","subscription_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/subscription","commits_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/commits{/sha}","git_commits_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/git/commits{/sha}","comments_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/comments{/number}","issue_comment_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/comments/{number}","contents_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/contents/{+path}","compare_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/merges","archive_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/downloads","issues_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues{/number}","pulls_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/pulls{/number}","milestones_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/milestones{/number}","notifications_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/labels{/name}","releases_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/releases{/id}","created_at":"2012-03-02T22:11:24Z","updated_at":"2015-02-16T18:56:38Z","pushed_at":"2015-02-16T00:32:07Z","git_url":"git://github.com/ReactiveCocoa/ReactiveCocoa.git","ssh_url":"git@github.com:ReactiveCocoa/ReactiveCocoa.git","clone_url":"https://github.com/ReactiveCocoa/ReactiveCocoa.git","svn_url":"https://github.com/ReactiveCocoa/ReactiveCocoa","homepage":"","size":25916,"stargazers_count":6954,"watchers_count":6954,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":983,"mirror_url":null,"open_issues_count":88,"forks":983,"open_issues":88,"watchers":6954,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/pulls/1760"},"html":{"href":"https://github.com/ReactiveCocoa/ReactiveCocoa/pull/1760"},"issue":{"href":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/1760"},"comments":{"href":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/1760/comments"},"review_comments":{"href":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/pulls/1760/comments"},"review_comment":{"href":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/pulls/1760/commits"},"statuses":{"href":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/statuses/8e1080734ec59c8d74839f2e2b0e4c67fe71f560"}}}}