Hi !
In Julia 0.7, the following code produce no error in the REPL
julia> using Combinatorics
julia> for c in Combinatorics.Combinations(1:3,2)
println(c)
end
[1, 2]
[1, 3]
[2, 3]
If I execute the code in a file, I have a warning
$ julia combination-04.jl
┌ Warning: The start/next/done iteration protocol is deprecated. Implement `iterate(::Combinatorics.Combinations{UnitRange{Int64}})`.
│ caller = ip:0x0
└ @ Core :-1
[1, 2]
[1, 3]
[2, 3]
How should I use iterate() to remove the warning ?
Thanks !