{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveX/RxJS/issues/1268","repository_url":"https://api.github.com/repos/ReactiveX/RxJS","labels_url":"https://api.github.com/repos/ReactiveX/RxJS/issues/1268/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxJS/issues/1268/comments","events_url":"https://api.github.com/repos/ReactiveX/RxJS/issues/1268/events","html_url":"https://github.com/ReactiveX/RxJS/pull/1268","id":129950152,"number":1268,"title":"feat(scanCase): adds scanCase operator and unit tests","user":{"login":"jwoodhull","id":1413963,"avatar_url":"https://avatars.githubusercontent.com/u/1413963?v=3","gravatar_id":"","url":"https://api.github.com/users/jwoodhull","html_url":"https://github.com/jwoodhull","followers_url":"https://api.github.com/users/jwoodhull/followers","following_url":"https://api.github.com/users/jwoodhull/following{/other_user}","gists_url":"https://api.github.com/users/jwoodhull/gists{/gist_id}","starred_url":"https://api.github.com/users/jwoodhull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwoodhull/subscriptions","organizations_url":"https://api.github.com/users/jwoodhull/orgs","repos_url":"https://api.github.com/users/jwoodhull/repos","events_url":"https://api.github.com/users/jwoodhull/events{/privacy}","received_events_url":"https://api.github.com/users/jwoodhull/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ReactiveX/RxJS/labels/type:%20discussion","name":"type: discussion","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-30T06:45:09Z","updated_at":"2016-02-03T01:16:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ReactiveX/RxJS/pulls/1268","html_url":"https://github.com/ReactiveX/RxJS/pull/1268","diff_url":"https://github.com/ReactiveX/RxJS/pull/1268.diff","patch_url":"https://github.com/ReactiveX/RxJS/pull/1268.patch"},"body":"This PR implements as scanCase operator.  ScanCase allows items to have different accumulator functions depending on the result of a select function."},"comment":{"url":"https://api.github.com/repos/ReactiveX/RxJS/issues/comments/178937313","html_url":"https://github.com/ReactiveX/RxJS/pull/1268#issuecomment-178937313","issue_url":"https://api.github.com/repos/ReactiveX/RxJS/issues/1268","id":178937313,"user":{"login":"robwormald","id":534930,"avatar_url":"https://avatars.githubusercontent.com/u/534930?v=3","gravatar_id":"","url":"https://api.github.com/users/robwormald","html_url":"https://github.com/robwormald","followers_url":"https://api.github.com/users/robwormald/followers","following_url":"https://api.github.com/users/robwormald/following{/other_user}","gists_url":"https://api.github.com/users/robwormald/gists{/gist_id}","starred_url":"https://api.github.com/users/robwormald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robwormald/subscriptions","organizations_url":"https://api.github.com/users/robwormald/orgs","repos_url":"https://api.github.com/users/robwormald/repos","events_url":"https://api.github.com/users/robwormald/events{/privacy}","received_events_url":"https://api.github.com/users/robwormald/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T01:16:32Z","updated_at":"2016-02-03T01:16:32Z","body":"Interesting idea. I like it, I think. \r\n\r\nThoughts:\r\n- the key-based scan object seems like the only reasonable way to describe this case, but I don't know how well it fits into the rest of Rx operators. @blesh?\r\n- I wonder if this is the kind of thing we should really be using let/composition for, or if it's a user land thing. Feels rather specific (though I'd totally use it, personally)\r\n- once operators can be patched after the fact with TS this kind of thing is easy to do in userland. So I dunno. \r\n- perf? Probably not a whole lot of difference really, but switches are fast. \r\n- I'm not super stoked on the name (this is RxJS after all, wouldn't be an issue without some bike shedding)"}}