{"action":"created","issue":{"url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3574","labels_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3574/labels{/name}","comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3574/comments","events_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3574/events","html_url":"https://github.com/D-Programming-Language/phobos/pull/3574","id":102565066,"number":3574,"title":"Fixed Issue 12752: std.algorithm.isPermutation","user":{"login":"JackStouffer","id":680068,"avatar_url":"https://avatars.githubusercontent.com/u/680068?v=3","gravatar_id":"","url":"https://api.github.com/users/JackStouffer","html_url":"https://github.com/JackStouffer","followers_url":"https://api.github.com/users/JackStouffer/followers","following_url":"https://api.github.com/users/JackStouffer/following{/other_user}","gists_url":"https://api.github.com/users/JackStouffer/gists{/gist_id}","starred_url":"https://api.github.com/users/JackStouffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackStouffer/subscriptions","organizations_url":"https://api.github.com/users/JackStouffer/orgs","repos_url":"https://api.github.com/users/JackStouffer/repos","events_url":"https://api.github.com/users/JackStouffer/events{/privacy}","received_events_url":"https://api.github.com/users/JackStouffer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":46,"created_at":"2015-08-22T20:24:38Z","updated_at":"2015-09-11T13:20:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3574","html_url":"https://github.com/D-Programming-Language/phobos/pull/3574","diff_url":"https://github.com/D-Programming-Language/phobos/pull/3574.diff","patch_url":"https://github.com/D-Programming-Language/phobos/pull/3574.patch"},"body":"Add the template function isPermutation to determine if two ranges are permutations\r\n\r\nhttps://issues.dlang.org/show_bug.cgi?id=12752"},"comment":{"url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/comments/139544057","html_url":"https://github.com/D-Programming-Language/phobos/pull/3574#issuecomment-139544057","issue_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3574","id":139544057,"user":{"login":"schveiguy","id":580778,"avatar_url":"https://avatars.githubusercontent.com/u/580778?v=3","gravatar_id":"","url":"https://api.github.com/users/schveiguy","html_url":"https://github.com/schveiguy","followers_url":"https://api.github.com/users/schveiguy/followers","following_url":"https://api.github.com/users/schveiguy/following{/other_user}","gists_url":"https://api.github.com/users/schveiguy/gists{/gist_id}","starred_url":"https://api.github.com/users/schveiguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schveiguy/subscriptions","organizations_url":"https://api.github.com/users/schveiguy/orgs","repos_url":"https://api.github.com/users/schveiguy/repos","events_url":"https://api.github.com/users/schveiguy/events{/privacy}","received_events_url":"https://api.github.com/users/schveiguy/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T13:20:31Z","updated_at":"2015-09-11T13:20:31Z","body":"I think we should drop the sorted optimization. It's essentially `std.algorithm.equal`. In fact, you don't need the length check, since `equal` will do this already. It's very unlikely that having a special overload that doesn't quite work without extra template parameters is going to be useful in generic code, when you could just use `equal` when you know it applies."}}