payload: {"action":"created","issue":{"url":"https://api.github.com/repos/rust-itertools/itertools/issues/388","repository_url":"https://api.github.com/repos/rust-itertools/itertools","labels_url":"https://api.github.com/repos/rust-itertools/itertools/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/rust-itertools/itertools/issues/388/comments","events_url":"https://api.github.com/repos/rust-itertools/itertools/issues/388/events","html_url":"https://github.com/rust-itertools/itertools/issues/388","id":533662389,"node_id":"MDU6SXNzdWU1MzM2NjIzODk=","number":388,"title":"Add pairwise()","user":{"login":"Kinrany","id":1634186,"node_id":"MDQ6VXNlcjE2MzQxODY=","avatar_url":"https://avatars2.githubusercontent.com/u/1634186?v=4","gravatar_id":"","url":"https://api.github.com/users/Kinrany","html_url":"https://github.com/Kinrany","followers_url":"https://api.github.com/users/Kinrany/followers","following_url":"https://api.github.com/users/Kinrany/following{/other_user}","gists_url":"https://api.github.com/users/Kinrany/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinrany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinrany/subscriptions","organizations_url":"https://api.github.com/users/Kinrany/orgs","repos_url":"https://api.github.com/users/Kinrany/repos","events_url":"https://api.github.com/users/Kinrany/events{/privacy}","received_events_url":"https://api.github.com/users/Kinrany/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-12-05T23:44:36Z","updated_at":"2019-12-05T23:56:50Z","closed_at":null,"author_association":"NONE","body":"RxJS and python's itertools have `pairwise`. It's an operator that yields every consecutive pair. For example, `[1, 2, 3, 4]` will become `[(1, 2), (2, 3), (3, 4)`.\r\n\r\nRxJS: https://rxjs.dev/api/operators/pairwise \\\r\nPython: https://docs.python.org/3/library/itertools.html (not linkable, please search for \"pairwise\")\r\n\r\nI've already implemented it for my own use. I'd be happy to contribute a RP."},"comment":{"url":"https://api.github.com/repos/rust-itertools/itertools/issues/comments/562371461","html_url":"https://github.com/rust-itertools/itertools/issues/388#issuecomment-562371461","issue_url":"https://api.github.com/repos/rust-itertools/itertools/issues/388","id":562371461,"node_id":"MDEyOklzc3VlQ29tbWVudDU2MjM3MTQ2MQ==","user":{"login":"jswrenn","id":3820879,"node_id":"MDQ6VXNlcjM4MjA4Nzk=","avatar_url":"https://avatars2.githubusercontent.com/u/3820879?v=4","gravatar_id":"","url":"https://api.github.com/users/jswrenn","html_url":"https://github.com/jswrenn","followers_url":"https://api.github.com/users/jswrenn/followers","following_url":"https://api.github.com/users/jswrenn/following{/other_user}","gists_url":"https://api.github.com/users/jswrenn/gists{/gist_id}","starred_url":"https://api.github.com/users/jswrenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jswrenn/subscriptions","organizations_url":"https://api.github.com/users/jswrenn/orgs","repos_url":"https://api.github.com/users/jswrenn/repos","events_url":"https://api.github.com/users/jswrenn/events{/privacy}","received_events_url":"https://api.github.com/users/jswrenn/received_events","type":"User","site_admin":false},"created_at":"2019-12-05T23:56:50Z","updated_at":"2019-12-05T23:56:50Z","author_association":"COLLABORATOR","body":"[`Itertools::tuple_windows`](https://docs.rs/itertools/0.8.2/itertools/trait.Itertools.html#method.tuple_windows)?"}}
other: {"actor":{"display_login":"jswrenn"}}