diff --git a/src/domains.jl b/src/domains.jl index 028717df7..c47c4af2c 100644 --- a/src/domains.jl +++ b/src/domains.jl @@ -48,7 +48,7 @@ Base.iterate(d::Domain, state=1) = state > nelements(d) ? nothing : (d[state], s Base.eltype(d::Domain) = eltype([d[i] for i in 1:nelements(d)]) -Base.keys(d::Domain) = Base.OneTo(nelements(d)) +Base.keys(d::Domain) = 1:nelements(d) Base.parent(d::Domain) = d diff --git a/src/topologies.jl b/src/topologies.jl index 9e45168be..11e2f0416 100644 --- a/src/topologies.jl +++ b/src/topologies.jl @@ -150,7 +150,7 @@ Base.iterate(t::Topology, state=1) = state > nelements(t) ? nothing : (t[state], Base.eltype(t::Topology) = eltype([t[i] for i in 1:nelements(t)]) -Base.keys(t::Topology) = Base.OneTo(nelements(t)) +Base.keys(t::Topology) = 1:nelements(t) # ---------------- # IMPLEMENTATIONS