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 c831bba commit 094b40eCopy full SHA for 094b40e
src/types.jl
@@ -45,3 +45,5 @@ end
45
Base.parent(I::Ideal) = Nemo.parent(I.gens[1])
46
47
Base.show(io::IO, I::Ideal) = print(io, I.gens)
48
+
49
+Base.getindex(I::Ideal, idx::Int) = I.gens[idx]
0 commit comments