{"action":"closed","issue":{"url":"https://api.github.com/repos/MetaStack-pl/MetaRx/issues/6","labels_url":"https://api.github.com/repos/MetaStack-pl/MetaRx/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/MetaStack-pl/MetaRx/issues/6/comments","events_url":"https://api.github.com/repos/MetaStack-pl/MetaRx/issues/6/events","html_url":"https://github.com/MetaStack-pl/MetaRx/issues/6","id":103694069,"number":6,"title":"BufSet should ignore duplicates instead of failing","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":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-28T10:34:17Z","updated_at":"2015-08-29T21:47:22Z","closed_at":"2015-08-29T21:47:22Z","body":"Inserting a duplicate value into a BufSet gives:\r\n assert(!elements.contains(value), \"Value already exists\")\r\n\r\nIt should instead work as (immutable) Scala Set trait, which ignores duplicates, or http://www.scala-lang.org/api/current/index.html#scala.collection.mutable.LinkedHashSet@add%28elem:A%29:Boolean which ignores and returns a flag indicating if it was a duplicate.\r\n"}}