{"action":"created","issue":{"url":"https://api.github.com/repos/ramda/ramda/issues/1301","labels_url":"https://api.github.com/repos/ramda/ramda/issues/1301/labels{/name}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/1301/comments","events_url":"https://api.github.com/repos/ramda/ramda/issues/1301/events","html_url":"https://github.com/ramda/ramda/issues/1301","id":96619694,"number":1301,"title":"Add a list XOR function","user":{"login":"trbrc","id":1036770,"avatar_url":"https://avatars.githubusercontent.com/u/1036770?v=3","gravatar_id":"","url":"https://api.github.com/users/trbrc","html_url":"https://github.com/trbrc","followers_url":"https://api.github.com/users/trbrc/followers","following_url":"https://api.github.com/users/trbrc/following{/other_user}","gists_url":"https://api.github.com/users/trbrc/gists{/gist_id}","starred_url":"https://api.github.com/users/trbrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trbrc/subscriptions","organizations_url":"https://api.github.com/users/trbrc/orgs","repos_url":"https://api.github.com/users/trbrc/repos","events_url":"https://api.github.com/users/trbrc/events{/privacy}","received_events_url":"https://api.github.com/users/trbrc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-22T17:16:30Z","updated_at":"2015-07-22T20:52:14Z","closed_at":null,"body":"There is currently no simple way to do an XOR between two lists, i.e. take two lists and return a list of the elements that occur in only one of the lists. Like this:\r\n```javascript\r\nR.xor([0, 1, 2, 3, 4], [6, 4, 2]) // => [0, 1, 3, 6]\r\n```\r\nLodash [has a method like this](https://lodash.com/docs#xor).\r\n\r\nAs suggested by @davidchambers on Gitter, here's a way to do it currently:\r\n\r\n```javascript\r\nconst xor = R.converge(R.difference, R.union, R.intersection);\r\n```\r\nBut that's unlikely to be efficient."},"comment":{"url":"https://api.github.com/repos/ramda/ramda/issues/comments/123858756","html_url":"https://github.com/ramda/ramda/issues/1301#issuecomment-123858756","issue_url":"https://api.github.com/repos/ramda/ramda/issues/1301","id":123858756,"user":{"login":"davidchambers","id":210406,"avatar_url":"https://avatars.githubusercontent.com/u/210406?v=3","gravatar_id":"","url":"https://api.github.com/users/davidchambers","html_url":"https://github.com/davidchambers","followers_url":"https://api.github.com/users/davidchambers/followers","following_url":"https://api.github.com/users/davidchambers/following{/other_user}","gists_url":"https://api.github.com/users/davidchambers/gists{/gist_id}","starred_url":"https://api.github.com/users/davidchambers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidchambers/subscriptions","organizations_url":"https://api.github.com/users/davidchambers/orgs","repos_url":"https://api.github.com/users/davidchambers/repos","events_url":"https://api.github.com/users/davidchambers/events{/privacy}","received_events_url":"https://api.github.com/users/davidchambers/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T20:52:14Z","updated_at":"2015-07-22T20:52:14Z","body":"I'm in favour of this function. `R.xor` is not a good name for it, though, as we already have `R.or` which does something entirely different. I suggest `R.symmetricDifference` or `R.symDifference`.\r\n"}}