{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5507","repository_url":"https://api.github.com/repos/rethinkdb/rethinkdb","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5507/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5507/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5507/events","html_url":"https://github.com/rethinkdb/rethinkdb/issues/5507","id":140289687,"number":5507,"title":"add consecutive=True to the group command","user":{"login":"devlounge","id":2102835,"avatar_url":"https://avatars.githubusercontent.com/u/2102835?v=3","gravatar_id":"","url":"https://api.github.com/users/devlounge","html_url":"https://github.com/devlounge","followers_url":"https://api.github.com/users/devlounge/followers","following_url":"https://api.github.com/users/devlounge/following{/other_user}","gists_url":"https://api.github.com/users/devlounge/gists{/gist_id}","starred_url":"https://api.github.com/users/devlounge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devlounge/subscriptions","organizations_url":"https://api.github.com/users/devlounge/orgs","repos_url":"https://api.github.com/users/devlounge/repos","events_url":"https://api.github.com/users/devlounge/events{/privacy}","received_events_url":"https://api.github.com/users/devlounge/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/labels/tp:ReQL_proposal","name":"tp:ReQL_proposal","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/2","html_url":"https://github.com/rethinkdb/rethinkdb/milestones/backlog","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/2/labels","id":211054,"number":2,"title":"backlog","description":"Issues in this milestone are not an immediate priority, and will be periodically revisited. When we decide to work on an issue in backlog, we'll move it to next.","creator":{"login":"coffeemug","id":48436,"avatar_url":"https://avatars.githubusercontent.com/u/48436?v=3","gravatar_id":"","url":"https://api.github.com/users/coffeemug","html_url":"https://github.com/coffeemug","followers_url":"https://api.github.com/users/coffeemug/followers","following_url":"https://api.github.com/users/coffeemug/following{/other_user}","gists_url":"https://api.github.com/users/coffeemug/gists{/gist_id}","starred_url":"https://api.github.com/users/coffeemug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coffeemug/subscriptions","organizations_url":"https://api.github.com/users/coffeemug/orgs","repos_url":"https://api.github.com/users/coffeemug/repos","events_url":"https://api.github.com/users/coffeemug/events{/privacy}","received_events_url":"https://api.github.com/users/coffeemug/received_events","type":"User","site_admin":false},"open_issues":563,"closed_issues":0,"state":"open","created_at":"2012-11-11T14:16:11Z","updated_at":"2016-03-11T21:56:53Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-03-11T20:56:56Z","updated_at":"2016-03-11T22:26:29Z","closed_at":null,"body":"Hi,\r\n\r\nThis is a feature request:\r\n\r\nexample sequence:\r\n[{\"foo\": 1}], {\"foo\":1}, {\"foo\":0}, {\"foo\": 1}]\r\nsequence.group(index='foo', consecutive=True) => 3 groups instead of 2 currently\r\n\r\n[\r\n  { group: 1:, reduction: [{\"foo\":1}, {\"foo\":1}],\r\n  { group: 0:, reduction: [{\"foo\":0}],\r\n  { group: 1:, reduction: [{\"foo\":1}]\r\n]\r\n\r\nThe expected behaviour would be the same than itertools.groupby in python"},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/195579560","html_url":"https://github.com/rethinkdb/rethinkdb/issues/5507#issuecomment-195579560","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5507","id":195579560,"user":{"login":"thelinuxlich","id":5043,"avatar_url":"https://avatars.githubusercontent.com/u/5043?v=3","gravatar_id":"","url":"https://api.github.com/users/thelinuxlich","html_url":"https://github.com/thelinuxlich","followers_url":"https://api.github.com/users/thelinuxlich/followers","following_url":"https://api.github.com/users/thelinuxlich/following{/other_user}","gists_url":"https://api.github.com/users/thelinuxlich/gists{/gist_id}","starred_url":"https://api.github.com/users/thelinuxlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thelinuxlich/subscriptions","organizations_url":"https://api.github.com/users/thelinuxlich/orgs","repos_url":"https://api.github.com/users/thelinuxlich/repos","events_url":"https://api.github.com/users/thelinuxlich/events{/privacy}","received_events_url":"https://api.github.com/users/thelinuxlich/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T22:26:29Z","updated_at":"2016-03-11T22:26:29Z","body":"By the way, does ```fold``` works on streams?"}}