{"action":"opened","issue":{"url":"https://api.github.com/repos/winterbe/sequency/issues/6","repository_url":"https://api.github.com/repos/winterbe/sequency","labels_url":"https://api.github.com/repos/winterbe/sequency/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/winterbe/sequency/issues/6/comments","events_url":"https://api.github.com/repos/winterbe/sequency/issues/6/events","html_url":"https://github.com/winterbe/sequency/issues/6","id":257525424,"number":6,"title":"groupBy() returns a Map, not a Sequence","user":{"login":"couzic","id":1380322,"avatar_url":"https://avatars2.githubusercontent.com/u/1380322?v=4","gravatar_id":"","url":"https://api.github.com/users/couzic","html_url":"https://github.com/couzic","followers_url":"https://api.github.com/users/couzic/followers","following_url":"https://api.github.com/users/couzic/following{/other_user}","gists_url":"https://api.github.com/users/couzic/gists{/gist_id}","starred_url":"https://api.github.com/users/couzic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/couzic/subscriptions","organizations_url":"https://api.github.com/users/couzic/orgs","repos_url":"https://api.github.com/users/couzic/repos","events_url":"https://api.github.com/users/couzic/events{/privacy}","received_events_url":"https://api.github.com/users/couzic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-13T21:21:57Z","updated_at":"2017-09-13T21:21:57Z","closed_at":null,"author_association":"NONE","body":"One thing I do quite often with Ramda:\r\n\r\n```ts\r\nimport {pipe, groupBy, values, map} from 'ramda'\r\n\r\npipe(\r\n  groupBy(person => person.age),\r\n  values,\r\n  map(peopleWithSameAge => ...)\r\n)(people)\r\n```\r\nOften, I use `groupBy()` as an intermediary operation in a long and complex data transformation. But with sequency, I'm forced to do something like:\r\n\r\n```ts\r\nasSequence(asSequence(people)\r\n  .groupBy(person => person.age),\r\n  .values())\r\n  .map(peopleWithSameAge => ...)\r\n)\r\n```\r\nIt does the job, but fluency is broken. \r\n\r\nI see you already have the concept of `IndexedValue`. We could introduce the concept of `KeyedValue`:\r\n```ts\r\ninterface KeyedValue<K extends string, V> {\r\n    key: K;\r\n    value: V;\r\n}\r\n```\r\nI'm not sure how exactly, but maybe `groupBy()` could return a `Sequence<KeyedValue<...>>`"}}
{"actor":{"display_login":"couzic"}}