mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-24 18:05:27 +01:00
more accurate show for FreeGroup
This commit is contained in:
parent
d3a9f8d3f6
commit
9395c8e2f0
@ -99,8 +99,8 @@ generators(G::FreeGroup) = [G(FreeGroupElem(g)) for g in G.gens]
|
||||
###############################################################################
|
||||
|
||||
function show(io::IO, G::FreeGroup)
|
||||
print(io, "Finitely presented group on $(length(G.gens)) generators:\n")
|
||||
print(io, "gens:\t", join([g.str for g in G.gens], ", "))
|
||||
print(io, "Free group on $(length(G.gens)) generators: ")
|
||||
join(io, G.gens, ", ")
|
||||
end
|
||||
|
||||
###############################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user