mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-25 18:15:29 +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)
|
function show(io::IO, G::FreeGroup)
|
||||||
print(io, "Finitely presented group on $(length(G.gens)) generators:\n")
|
print(io, "Free group on $(length(G.gens)) generators: ")
|
||||||
print(io, "gens:\t", join([g.str for g in G.gens], ", "))
|
join(io, G.gens, ", ")
|
||||||
end
|
end
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user