Skip to content

Commit 282b0b1

Browse files
committed
0.4 compatibility
1 parent 5e3d1b3 commit 282b0b1

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

REQUIRE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
julia 0.3
1+
julia 0.3+
22
Compat
3-
Polynomial
3+
Polynomials

src/Combinatorics.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Combinatorics
22

3-
using Compat, Polynomial
3+
using Compat, Polynomials
44

55
export bell,
66
catalan,
@@ -50,7 +50,7 @@ function catalan(bn::Integer)
5050
div(binomial(2*n, n), (n + 1))
5151
end
5252

53-
# The number of permutations of n with no fixed points (subfactorial)
53+
# The number of permutations of n with no fixed points (subfactorial)
5454
function derangement(sn::Integer)
5555
n = BigInt(sn)
5656
return num(factorial(n)*sum([(-1)^k//factorial(k) for k=0:n]))

src/youngdiagrams.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
typealias Partition Vector{Int64}
66
typealias YoungDiagram Array{Int64,2}
7-
typealias SkewDiagram (Partition, Partition)
7+
typealias SkewDiagram @compat(Tuple{Partition,Partition})
88

9-
export Partition,
9+
export Partition,
1010
YoungDiagram, #represents shape of Young diagram
11-
SkewDiagram, #skew diagrams
11+
SkewDiagram, #skew diagrams
1212
partitionsequence,
1313
isrimhook, #Check if skew diagram is rim hook
1414
leglength,
@@ -158,5 +158,3 @@ function character(λ::Partition, μ::Partition)
158158
Λ▔ = partitionsequence(λ)
159159
MN1inner(Λ▔, T, μ, 1)
160160
end
161-
162-

0 commit comments

Comments
 (0)