{"action":"closed","issue":{"url":"https://api.github.com/repos/amaembo/streamex/issues/106","repository_url":"https://api.github.com/repos/amaembo/streamex","labels_url":"https://api.github.com/repos/amaembo/streamex/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/amaembo/streamex/issues/106/comments","events_url":"https://api.github.com/repos/amaembo/streamex/issues/106/events","html_url":"https://github.com/amaembo/streamex/issues/106","id":172549608,"number":106,"title":"Conditional Map() Methods","user":{"login":"nathanila","id":1236594,"avatar_url":"https://avatars.githubusercontent.com/u/1236594?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanila","html_url":"https://github.com/nathanila","followers_url":"https://api.github.com/users/nathanila/followers","following_url":"https://api.github.com/users/nathanila/following{/other_user}","gists_url":"https://api.github.com/users/nathanila/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanila/subscriptions","organizations_url":"https://api.github.com/users/nathanila/orgs","repos_url":"https://api.github.com/users/nathanila/repos","events_url":"https://api.github.com/users/nathanila/events{/privacy}","received_events_url":"https://api.github.com/users/nathanila/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-22T20:41:38Z","updated_at":"2016-08-23T04:08:28Z","closed_at":"2016-08-23T04:08:28Z","body":"I've run into this situation a couple of times.\r\n\r\nStreamEx.\r\n   ...\r\n   map(item -> condition(item) ? doSomething(item) : doSomethingElse(item)).\r\n   ...\r\n\r\nMany times doSomethingElse() is simply \"item\".\r\n\r\nCan you add methods such as the following?\r\n\r\nmap(Predicate<? super T> condition, Function<? super T, ? extends T> mapper);\r\nmap(Predicate<? super T> condition, Function<? super T, ? extends T> positive, Function<? super T, ? extends T> negative);"}}
{"actor":{"display_login":"amaembo"}}