{"action":"created","issue":{"url":"https://api.github.com/repos/MetaStack-pl/MetaRx/issues/8","labels_url":"https://api.github.com/repos/MetaStack-pl/MetaRx/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/MetaStack-pl/MetaRx/issues/8/comments","events_url":"https://api.github.com/repos/MetaStack-pl/MetaRx/issues/8/events","html_url":"https://github.com/MetaStack-pl/MetaRx/issues/8","id":104008057,"number":8,"title":"Support for finding and updating element(s) in Buffer","user":{"login":"mkotsbak","id":296523,"avatar_url":"https://avatars.githubusercontent.com/u/296523?v=3","gravatar_id":"","url":"https://api.github.com/users/mkotsbak","html_url":"https://github.com/mkotsbak","followers_url":"https://api.github.com/users/mkotsbak/followers","following_url":"https://api.github.com/users/mkotsbak/following{/other_user}","gists_url":"https://api.github.com/users/mkotsbak/gists{/gist_id}","starred_url":"https://api.github.com/users/mkotsbak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkotsbak/subscriptions","organizations_url":"https://api.github.com/users/mkotsbak/orgs","repos_url":"https://api.github.com/users/mkotsbak/repos","events_url":"https://api.github.com/users/mkotsbak/events{/privacy}","received_events_url":"https://api.github.com/users/mkotsbak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-31T08:17:42Z","updated_at":"2015-08-31T09:13:09Z","closed_at":null,"body":"If you want to update an element in a Buffer, find() only returns the element, and update() needs the index.\r\n\r\nI want something like findAndUpdate(query: T => Boolean, newElement: T)"},"comment":{"url":"https://api.github.com/repos/MetaStack-pl/MetaRx/issues/comments/136309609","html_url":"https://github.com/MetaStack-pl/MetaRx/issues/8#issuecomment-136309609","issue_url":"https://api.github.com/repos/MetaStack-pl/MetaRx/issues/8","id":136309609,"user":{"login":"tindzk","id":196819,"avatar_url":"https://avatars.githubusercontent.com/u/196819?v=3","gravatar_id":"","url":"https://api.github.com/users/tindzk","html_url":"https://github.com/tindzk","followers_url":"https://api.github.com/users/tindzk/followers","following_url":"https://api.github.com/users/tindzk/following{/other_user}","gists_url":"https://api.github.com/users/tindzk/gists{/gist_id}","starred_url":"https://api.github.com/users/tindzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tindzk/subscriptions","organizations_url":"https://api.github.com/users/tindzk/orgs","repos_url":"https://api.github.com/users/tindzk/repos","events_url":"https://api.github.com/users/tindzk/events{/privacy}","received_events_url":"https://api.github.com/users/tindzk/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T09:13:09Z","updated_at":"2015-08-31T09:13:09Z","body":"[``update()``](https://github.com/MetaStack-pl/MetaRx/blob/master/shared/src/main/scala/pl/metastack/metarx/Buffer.scala#L658) doesn't take an index, but a function ``T => T``. This should be exactly what you need?"}}