Skip to content

Commit

Permalink
check if Julia version is post-combinatorics removal (#27)
Browse files Browse the repository at this point in the history
fixes #26
  • Loading branch information
tlnagy authored and KristofferC committed Aug 9, 2016
1 parent 44d815f commit 2cb376c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Combinatorics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import Base: start, next, done, length, eltype

#These 8 functions were removed from Julia 0.5 as part of JuliaLang/julia#13897,
#so check if it's necessary to import them to overload the stub methods left in
#Base.
if isdefined(Base, :combinations)
#Base. Only do this if on a version of Julia post-combinatorics removal.
if isdefined(Base, :combinations) && VERSION >= v"0.5.0-dev+1204"
import Base: combinations, partitions, prevprod, levicivita, nthperm,
nthperm!, parity, permutations
end
Expand Down

0 comments on commit 2cb376c

Please sign in to comment.