{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/13897","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/13897/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/13897/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/13897/events","html_url":"https://github.com/JuliaLang/julia/pull/13897","id":115568911,"number":13897,"title":"Move most combinatorics code out of Base","user":{"login":"jiahao","id":1732,"avatar_url":"https://avatars.githubusercontent.com/u/1732?v=3","gravatar_id":"","url":"https://api.github.com/users/jiahao","html_url":"https://github.com/jiahao","followers_url":"https://api.github.com/users/jiahao/followers","following_url":"https://api.github.com/users/jiahao/following{/other_user}","gists_url":"https://api.github.com/users/jiahao/gists{/gist_id}","starred_url":"https://api.github.com/users/jiahao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiahao/subscriptions","organizations_url":"https://api.github.com/users/jiahao/orgs","repos_url":"https://api.github.com/users/jiahao/repos","events_url":"https://api.github.com/users/jiahao/events{/privacy}","received_events_url":"https://api.github.com/users/jiahao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-11-06T19:16:43Z","updated_at":"2015-11-13T01:50:44Z","closed_at":"2015-11-09T21:21:42Z","pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/13897","html_url":"https://github.com/JuliaLang/julia/pull/13897","diff_url":"https://github.com/JuliaLang/julia/pull/13897.diff","patch_url":"https://github.com/JuliaLang/julia/pull/13897.patch"},"body":"This PR extracts all combinatorics functions from Julia's `Base` library, except for:\r\n\r\n- `binomial`,\r\n- `factorial`, and\r\n- `gamma`\r\n- edit: and basic functions for permutations: `isperm`, `invperm`, `permute!`, `ipermute!`\r\n- and `nextprod` which is used in `Base.DSP`\r\n\r\nAll other functions are to be migrated to https://github.com/JuliaLang/Combinatorics.jl\r\n\r\nSee: JuliaLang/Combinatorics.jl#8\r\n\r\nRef: #5155"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/156292224","html_url":"https://github.com/JuliaLang/julia/pull/13897#issuecomment-156292224","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/13897","id":156292224,"user":{"login":"sbromberger","id":941359,"avatar_url":"https://avatars.githubusercontent.com/u/941359?v=3","gravatar_id":"","url":"https://api.github.com/users/sbromberger","html_url":"https://github.com/sbromberger","followers_url":"https://api.github.com/users/sbromberger/followers","following_url":"https://api.github.com/users/sbromberger/following{/other_user}","gists_url":"https://api.github.com/users/sbromberger/gists{/gist_id}","starred_url":"https://api.github.com/users/sbromberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbromberger/subscriptions","organizations_url":"https://api.github.com/users/sbromberger/orgs","repos_url":"https://api.github.com/users/sbromberger/repos","events_url":"https://api.github.com/users/sbromberger/events{/privacy}","received_events_url":"https://api.github.com/users/sbromberger/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T01:50:44Z","updated_at":"2015-11-13T01:50:44Z","body":"OK, I'm a bit confused here. How is one supposed to write code that uses `combinations()` that works on 0.4 and 0.5? I can't put Combinatorics.jl in REQUIRE, since it'll cause a 0.4 failure (\"ERROR: Combinatorics can't be installed because it has no versions that support 0.4.2-pre+3 of julia.\"), and omitting it in 0.5 throws the error about having `combinations()` now in Combinatorics.\r\n\r\nAdvice greatly appreciated. Thanks."}}