{"comment":{"url":"https://api.github.com/repos/rgleichman/roshask/comments/9134071","html_url":"https://github.com/rgleichman/roshask/commit/791c9f107b60f948e99f6d9ce366476d9a175b13#commitcomment-9134071","id":9134071,"user":{"login":"rgleichman","id":1145705,"avatar_url":"https://avatars.githubusercontent.com/u/1145705?v=3","gravatar_id":"","url":"https://api.github.com/users/rgleichman","html_url":"https://github.com/rgleichman","followers_url":"https://api.github.com/users/rgleichman/followers","following_url":"https://api.github.com/users/rgleichman/following{/other_user}","gists_url":"https://api.github.com/users/rgleichman/gists{/gist_id}","starred_url":"https://api.github.com/users/rgleichman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgleichman/subscriptions","organizations_url":"https://api.github.com/users/rgleichman/orgs","repos_url":"https://api.github.com/users/rgleichman/repos","events_url":"https://api.github.com/users/rgleichman/events{/privacy}","received_events_url":"https://api.github.com/users/rgleichman/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"791c9f107b60f948e99f6d9ce366476d9a175b13","created_at":"2015-01-02T04:33:46Z","updated_at":"2015-01-02T04:33:46Z","body":"I agree that the sentence\r\n> Returns a 'Topic' that produces a new pair every time a value of [the] first topic produces a new value, followed by a new value from second topic.\r\n\r\nis not very clear. I think this description would be clearer, but is perhaps a bit too long/repetitive:\r\n\r\n> Returns a 'Topic' that produces a new pair only when there is a new value from the first topic immediately followed by a new value from the second topic. In other words, it produces a pair only when the second newest value is from the first topic and the newest value is from the second topic (ie. first then second). New pairs are not produced when the two most recent values are both of the same topic, nor if the second newest value is from the second topic and the newest value is from the first topic.\r\n\r\nIn table form: `firstThenSecond t1 t2` where X represents publishing a new pair\r\n\r\n| second newest value \\ newest value | t1 | t2 |\r\n|------------------------------------|----|----|\r\n| t1                                 |    | X  |\r\n| t2                                 |    |    |\r\n\r\n`bothNew t1 t2`\r\n\r\n| second newest value \\ newest value | t1 | t2 |\r\n|------------------------------------|----|----|\r\n| t1                                 |    | X  |\r\n| t2                                 | X  |    |\r\n\r\n`everyNew t1 t2`\r\n\r\n| second newest value \\ newest value | t1 | t2 |\r\n|------------------------------------|----|----|\r\n| t1                                 | X  | X  |\r\n| t2                                 | X  | X  |"}}