We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a05c7cc commit 4a7c36fCopy full SHA for 4a7c36f
src/Options.jl
@@ -38,7 +38,11 @@ function Options{T<:OptionsChecking}(::Type{T},args...)
38
end
39
n = div(length(args),2)
40
keys, index, vals = if n > 0
41
- (args[1:2:end], ntuple(n, identity), Any[args[2:2:end]...])
+ if VERSION < v"0.4-"
42
+ (args[1:2:end], ntuple(n, identity), Any[args[2:2:end]...])
43
+ else
44
+ (args[1:2:end], ntuple(identity, n), Any[args[2:2:end]...])
45
+ end
46
else
47
((), (), Array(Any, 0))
48
0 commit comments