1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-25 02:05:30 +01:00

more accurate show for FreeGroup

This commit is contained in:
kalmar 2017-05-15 17:28:58 +02:00
parent d3a9f8d3f6
commit 9395c8e2f0

View File

@ -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
###############################################################################