{"action":"created","comment":{"url":"https://api.github.com/repos/pointfreeco/swift-prelude/pulls/comments/145414555","pull_request_review_id":70210038,"id":145414555,"diff_hunk":"@@ -0,0 +1,195 @@\n+import Prelude\n+\n+public struct Tuple<A, B> {\n+  public let first: A\n+  public let second: B\n+}\n+\n+public typealias T2<A, Z> = Tuple<A, Z>\n+public typealias T3<A, B, Z> = Tuple<A, T2<B, Z>>\n+public typealias T4<A, B, C, Z> = Tuple<A, T3<B, C, Z>>\n+public typealias T5<A, B, C, D, Z> = Tuple<A, T4<B, C, D, Z>>\n+public typealias T6<A, B, C, D, E, Z> = Tuple<A, T5<B, C, D, E, Z>>\n+public typealias T7<A, B, C, D, E, F, Z> = Tuple<A, T6<B, C, D, E, F, Z>>\n+\n+public typealias Tuple1<A> = T2<A, Unit>\n+public typealias Tuple2<A, B> = T3<A, B, Unit>\n+public typealias Tuple3<A, B, C> = T4<A, B, C, Unit>\n+public typealias Tuple4<A, B, C, D> = T5<A, B, C, D, Unit>\n+public typealias Tuple5<A, B, C, D, E> = T6<A, B, C, D, E, Unit>\n+public typealias Tuple6<A, B, C, D, E, F> = T7<A, B, C, D, E, F, Unit>\n+\n+infix operator .*.: infixr6\n+\n+public func .*. <A, B> (lhs: A, rhs: B) -> Tuple2<A, B> {\n+  return .init(first: lhs, second: Tuple1(first: rhs, second: unit))\n+}\n+public func .*. <A, B> (lhs: A, rhs: Tuple1<B>) -> Tuple2<A, B> {\n+  return .init(first: lhs, second: rhs)\n+}\n+public func .*. <A, B, C> (lhs: A, rhs: Tuple2<B, C>) -> Tuple3<A, B, C> {\n+  return .init(first: lhs, second: rhs)\n+}\n+public func .*. <A, B, C, D> (lhs: A, rhs: Tuple3<B, C, D>) -> Tuple4<A, B, C, D> {\n+  return .init(first: lhs, second: rhs)\n+}\n+public func .*. <A, B, C, D, E> (lhs: A, rhs: Tuple4<B, C, D, E>) -> Tuple5<A, B, C, D, E> {\n+  return .init(first: lhs, second: rhs)\n+}\n+public func .*. <A, B, C, D, E, F> (lhs: A, rhs: Tuple5<B, C, D, E, F>) -> Tuple6<A, B, C, D, E, F> {\n+  return .init(first: lhs, second: rhs)\n+}\n+\n+prefix operator .*.","path":"Sources/Tuple/Tuple.swift","position":43,"original_position":43,"commit_id":"0efaf1d1162a941cc26c7c20bd80e85a6e585c82","original_commit_id":"0efaf1d1162a941cc26c7c20bd80e85a6e585c82","user":{"login":"mbrandonw","id":135203,"avatar_url":"https://avatars1.githubusercontent.com/u/135203?v=4","gravatar_id":"","url":"https://api.github.com/users/mbrandonw","html_url":"https://github.com/mbrandonw","followers_url":"https://api.github.com/users/mbrandonw/followers","following_url":"https://api.github.com/users/mbrandonw/following{/other_user}","gists_url":"https://api.github.com/users/mbrandonw/gists{/gist_id}","starred_url":"https://api.github.com/users/mbrandonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbrandonw/subscriptions","organizations_url":"https://api.github.com/users/mbrandonw/orgs","repos_url":"https://api.github.com/users/mbrandonw/repos","events_url":"https://api.github.com/users/mbrandonw/events{/privacy}","received_events_url":"https://api.github.com/users/mbrandonw/received_events","type":"User","site_admin":false},"body":"oh I can just drop the prefix until a later time then. \r\n\r\nwhat is the problem using `>` or `<`?","created_at":"2017-10-18T13:32:42Z","updated_at":"2017-10-18T13:32:42Z","html_url":"https://github.com/pointfreeco/swift-prelude/pull/66#discussion_r145414555","pull_request_url":"https://api.github.com/repos/pointfreeco/swift-prelude/pulls/66","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/pointfreeco/swift-prelude/pulls/comments/145414555"},"html":{"href":"https://github.com/pointfreeco/swift-prelude/pull/66#discussion_r145414555"},"pull_request":{"href":"https://api.github.com/repos/pointfreeco/swift-prelude/pulls/66"}},"in_reply_to_id":145403284},"pull_request":{"url":"https://api.github.com/repos/pointfreeco/swift-prelude/pulls/66","id":147021067,"html_url":"https://github.com/pointfreeco/swift-prelude/pull/66","diff_url":"https://github.com/pointfreeco/swift-prelude/pull/66.diff","patch_url":"https://github.com/pointfreeco/swift-prelude/pull/66.patch","issue_url":"https://api.github.com/repos/pointfreeco/swift-prelude/issues/66","number":66,"state":"open","locked":false,"title":"Nested tuples and eithers","user":{"login":"mbrandonw","id":135203,"avatar_url":"https://avatars1.githubusercontent.com/u/135203?v=4","gravatar_id":"","url":"https://api.github.com/users/mbrandonw","html_url":"https://github.com/mbrandonw","followers_url":"https://api.github.com/users/mbrandonw/followers","following_url":"https://api.github.com/users/mbrandonw/following{/other_user}","gists_url":"https://api.github.com/users/mbrandonw/gists{/gist_id}","starred_url":"https://api.github.com/users/mbrandonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbrandonw/subscriptions","organizations_url":"https://api.github.com/users/mbrandonw/orgs","repos_url":"https://api.github.com/users/mbrandonw/repos","events_url":"https://api.github.com/users/mbrandonw/events{/privacy}","received_events_url":"https://api.github.com/users/mbrandonw/received_events","type":"User","site_admin":false},"body":"Think this will be useful soon, so just doing the grunt work now.\r\n\r\nthis supports nested tuples and either up to arity 6 and provides some functions to make it easy to work with. you can constructed a nested tuple using the `.*.` operator:\r\n\r\n```swift \r\nlet tuple: Tuple4<String, Int, Bool, [Int]> = \"hello\" .*. 4 .*. false .*. [1, 2, 3]\r\n```\r\n\r\nand you can construct an either by \"injecting\" a value:\r\n\r\n```swift \r\nlet either: Either4<String, Int, Bool, [Int]> = inj4([1, 2, 3])\r\n```\r\n\r\nhaving first class types for these things will be very nice","created_at":"2017-10-17T12:13:16Z","updated_at":"2017-10-18T13:32:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c186195308cde1e4e114733156291aa61e386323","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/pointfreeco/swift-prelude/pulls/66/commits","review_comments_url":"https://api.github.com/repos/pointfreeco/swift-prelude/pulls/66/comments","review_comment_url":"https://api.github.com/repos/pointfreeco/swift-prelude/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pointfreeco/swift-prelude/issues/66/comments","statuses_url":"https://api.github.com/repos/pointfreeco/swift-prelude/statuses/0efaf1d1162a941cc26c7c20bd80e85a6e585c82","head":{"label":"pointfreeco:tuple","ref":"tuple","sha":"0efaf1d1162a941cc26c7c20bd80e85a6e585c82","user":{"login":"pointfreeco","id":29466629,"avatar_url":"https://avatars1.githubusercontent.com/u/29466629?v=4","gravatar_id":"","url":"https://api.github.com/users/pointfreeco","html_url":"https://github.com/pointfreeco","followers_url":"https://api.github.com/users/pointfreeco/followers","following_url":"https://api.github.com/users/pointfreeco/following{/other_user}","gists_url":"https://api.github.com/users/pointfreeco/gists{/gist_id}","starred_url":"https://api.github.com/users/pointfreeco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pointfreeco/subscriptions","organizations_url":"https://api.github.com/users/pointfreeco/orgs","repos_url":"https://api.github.com/users/pointfreeco/repos","events_url":"https://api.github.com/users/pointfreeco/events{/privacy}","received_events_url":"https://api.github.com/users/pointfreeco/received_events","type":"Organization","site_admin":false},"repo":{"id":94474283,"name":"swift-prelude","full_name":"pointfreeco/swift-prelude","owner":{"login":"pointfreeco","id":29466629,"avatar_url":"https://avatars1.githubusercontent.com/u/29466629?v=4","gravatar_id":"","url":"https://api.github.com/users/pointfreeco","html_url":"https://github.com/pointfreeco","followers_url":"https://api.github.com/users/pointfreeco/followers","following_url":"https://api.github.com/users/pointfreeco/following{/other_user}","gists_url":"https://api.github.com/users/pointfreeco/gists{/gist_id}","starred_url":"https://api.github.com/users/pointfreeco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pointfreeco/subscriptions","organizations_url":"https://api.github.com/users/pointfreeco/orgs","repos_url":"https://api.github.com/users/pointfreeco/repos","events_url":"https://api.github.com/users/pointfreeco/events{/privacy}","received_events_url":"https://api.github.com/users/pointfreeco/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pointfreeco/swift-prelude","description":"A collection of types and functions that enhance the Swift language","fork":false,"url":"https://api.github.com/repos/pointfreeco/swift-prelude","forks_url":"https://api.github.com/repos/pointfreeco/swift-prelude/forks","keys_url":"https://api.github.com/repos/pointfreeco/swift-prelude/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pointfreeco/swift-prelude/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pointfreeco/swift-prelude/teams","hooks_url":"https://api.github.com/repos/pointfreeco/swift-prelude/hooks","issue_events_url":"https://api.github.com/repos/pointfreeco/swift-prelude/issues/events{/number}","events_url":"https://api.github.com/repos/pointfreeco/swift-prelude/events","assignees_url":"https://api.github.com/repos/pointfreeco/swift-prelude/assignees{/user}","branches_url":"https://api.github.com/repos/pointfreeco/swift-prelude/branches{/branch}","tags_url":"https://api.github.com/repos/pointfreeco/swift-prelude/tags","blobs_url":"https://api.github.com/repos/pointfreeco/swift-prelude/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pointfreeco/swift-prelude/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pointfreeco/swift-prelude/git/refs{/sha}","trees_url":"https://api.github.com/repos/pointfreeco/swift-prelude/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pointfreeco/swift-prelude/statuses/{sha}","languages_url":"https://api.github.com/repos/pointfreeco/swift-prelude/languages","stargazers_url":"https://api.github.com/repos/pointfreeco/swift-prelude/stargazers","contributors_url":"https://api.github.com/repos/pointfreeco/swift-prelude/contributors","subscribers_url":"https://api.github.com/repos/pointfreeco/swift-prelude/subscribers","subscription_url":"https://api.github.com/repos/pointfreeco/swift-prelude/subscription","commits_url":"https://api.github.com/repos/pointfreeco/swift-prelude/commits{/sha}","git_commits_url":"https://api.github.com/repos/pointfreeco/swift-prelude/git/commits{/sha}","comments_url":"https://api.github.com/repos/pointfreeco/swift-prelude/comments{/number}","issue_comment_url":"https://api.github.com/repos/pointfreeco/swift-prelude/issues/comments{/number}","contents_url":"https://api.github.com/repos/pointfreeco/swift-prelude/contents/{+path}","compare_url":"https://api.github.com/repos/pointfreeco/swift-prelude/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pointfreeco/swift-prelude/merges","archive_url":"https://api.github.com/repos/pointfreeco/swift-prelude/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pointfreeco/swift-prelude/downloads","issues_url":"https://api.github.com/repos/pointfreeco/swift-prelude/issues{/number}","pulls_url":"https://api.github.com/repos/pointfreeco/swift-prelude/pulls{/number}","milestones_url":"https://api.github.com/repos/pointfreeco/swift-prelude/milestones{/number}","notifications_url":"https://api.github.com/repos/pointfreeco/swift-prelude/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pointfreeco/swift-prelude/labels{/name}","releases_url":"https://api.github.com/repos/pointfreeco/swift-prelude/releases{/id}","deployments_url":"https://api.github.com/repos/pointfreeco/swift-prelude/deployments","created_at":"2017-06-15T19:59:50Z","updated_at":"2017-10-03T01:09:41Z","pushed_at":"2017-10-17T12:14:08Z","git_url":"git://github.com/pointfreeco/swift-prelude.git","ssh_url":"git@github.com:pointfreeco/swift-prelude.git","clone_url":"https://github.com/pointfreeco/swift-prelude.git","svn_url":"https://github.com/pointfreeco/swift-prelude","homepage":"","size":122,"stargazers_count":17,"watchers_count":17,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":17,"default_branch":"master"}},"base":{"label":"pointfreeco:master","ref":"master","sha":"e855893ab7b8b2d6e54e225f57a88085bb32bf37","user":{"login":"pointfreeco","id":29466629,"avatar_url":"https://avatars1.githubusercontent.com/u/29466629?v=4","gravatar_id":"","url":"https://api.github.com/users/pointfreeco","html_url":"https://github.com/pointfreeco","followers_url":"https://api.github.com/users/pointfreeco/followers","following_url":"https://api.github.com/users/pointfreeco/following{/other_user}","gists_url":"https://api.github.com/users/pointfreeco/gists{/gist_id}","starred_url":"https://api.github.com/users/pointfreeco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pointfreeco/subscriptions","organizations_url":"https://api.github.com/users/pointfreeco/orgs","repos_url":"https://api.github.com/users/pointfreeco/repos","events_url":"https://api.github.com/users/pointfreeco/events{/privacy}","received_events_url":"https://api.github.com/users/pointfreeco/received_events","type":"Organization","site_admin":false},"repo":{"id":94474283,"name":"swift-prelude","full_name":"pointfreeco/swift-prelude","owner":{"login":"pointfreeco","id":29466629,"avatar_url":"https://avatars1.githubusercontent.com/u/29466629?v=4","gravatar_id":"","url":"https://api.github.com/users/pointfreeco","html_url":"https://github.com/pointfreeco","followers_url":"https://api.github.com/users/pointfreeco/followers","following_url":"https://api.github.com/users/pointfreeco/following{/other_user}","gists_url":"https://api.github.com/users/pointfreeco/gists{/gist_id}","starred_url":"https://api.github.com/users/pointfreeco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pointfreeco/subscriptions","organizations_url":"https://api.github.com/users/pointfreeco/orgs","repos_url":"https://api.github.com/users/pointfreeco/repos","events_url":"https://api.github.com/users/pointfreeco/events{/privacy}","received_events_url":"https://api.github.com/users/pointfreeco/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pointfreeco/swift-prelude","description":"A collection of types and functions that enhance the Swift language","fork":false,"url":"https://api.github.com/repos/pointfreeco/swift-prelude","forks_url":"https://api.github.com/repos/pointfreeco/swift-prelude/forks","keys_url":"https://api.github.com/repos/pointfreeco/swift-prelude/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pointfreeco/swift-prelude/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pointfreeco/swift-prelude/teams","hooks_url":"https://api.github.com/repos/pointfreeco/swift-prelude/hooks","issue_events_url":"https://api.github.com/repos/pointfreeco/swift-prelude/issues/events{/number}","events_url":"https://api.github.com/repos/pointfreeco/swift-prelude/events","assignees_url":"https://api.github.com/repos/pointfreeco/swift-prelude/assignees{/user}","branches_url":"https://api.github.com/repos/pointfreeco/swift-prelude/branches{/branch}","tags_url":"https://api.github.com/repos/pointfreeco/swift-prelude/tags","blobs_url":"https://api.github.com/repos/pointfreeco/swift-prelude/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pointfreeco/swift-prelude/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pointfreeco/swift-prelude/git/refs{/sha}","trees_url":"https://api.github.com/repos/pointfreeco/swift-prelude/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pointfreeco/swift-prelude/statuses/{sha}","languages_url":"https://api.github.com/repos/pointfreeco/swift-prelude/languages","stargazers_url":"https://api.github.com/repos/pointfreeco/swift-prelude/stargazers","contributors_url":"https://api.github.com/repos/pointfreeco/swift-prelude/contributors","subscribers_url":"https://api.github.com/repos/pointfreeco/swift-prelude/subscribers","subscription_url":"https://api.github.com/repos/pointfreeco/swift-prelude/subscription","commits_url":"https://api.github.com/repos/pointfreeco/swift-prelude/commits{/sha}","git_commits_url":"https://api.github.com/repos/pointfreeco/swift-prelude/git/commits{/sha}","comments_url":"https://api.github.com/repos/pointfreeco/swift-prelude/comments{/number}","issue_comment_url":"https://api.github.com/repos/pointfreeco/swift-prelude/issues/comments{/number}","contents_url":"https://api.github.com/repos/pointfreeco/swift-prelude/contents/{+path}","compare_url":"https://api.github.com/repos/pointfreeco/swift-prelude/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pointfreeco/swift-prelude/merges","archive_url":"https://api.github.com/repos/pointfreeco/swift-prelude/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pointfreeco/swift-prelude/downloads","issues_url":"https://api.github.com/repos/pointfreeco/swift-prelude/issues{/number}","pulls_url":"https://api.github.com/repos/pointfreeco/swift-prelude/pulls{/number}","milestones_url":"https://api.github.com/repos/pointfreeco/swift-prelude/milestones{/number}","notifications_url":"https://api.github.com/repos/pointfreeco/swift-prelude/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pointfreeco/swift-prelude/labels{/name}","releases_url":"https://api.github.com/repos/pointfreeco/swift-prelude/releases{/id}","deployments_url":"https://api.github.com/repos/pointfreeco/swift-prelude/deployments","created_at":"2017-06-15T19:59:50Z","updated_at":"2017-10-03T01:09:41Z","pushed_at":"2017-10-17T12:14:08Z","git_url":"git://github.com/pointfreeco/swift-prelude.git","ssh_url":"git@github.com:pointfreeco/swift-prelude.git","clone_url":"https://github.com/pointfreeco/swift-prelude.git","svn_url":"https://github.com/pointfreeco/swift-prelude","homepage":"","size":122,"stargazers_count":17,"watchers_count":17,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pointfreeco/swift-prelude/pulls/66"},"html":{"href":"https://github.com/pointfreeco/swift-prelude/pull/66"},"issue":{"href":"https://api.github.com/repos/pointfreeco/swift-prelude/issues/66"},"comments":{"href":"https://api.github.com/repos/pointfreeco/swift-prelude/issues/66/comments"},"review_comments":{"href":"https://api.github.com/repos/pointfreeco/swift-prelude/pulls/66/comments"},"review_comment":{"href":"https://api.github.com/repos/pointfreeco/swift-prelude/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pointfreeco/swift-prelude/pulls/66/commits"},"statuses":{"href":"https://api.github.com/repos/pointfreeco/swift-prelude/statuses/0efaf1d1162a941cc26c7c20bd80e85a6e585c82"}},"author_association":"OWNER"}}
{"actor":{"display_login":"mbrandonw"}}