1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-11-19 06:30:29 +01:00

show should be implemented for concrete subtypes of GSymbol

This commit is contained in:
kalmar 2017-05-11 17:38:07 +02:00
parent eb71dfe26e
commit ba3ca8a0ba

View File

@ -21,15 +21,6 @@ doc"""
"""
abstract GSymbol
function show(io::IO, s::GSymbol)
if s.pow == 0
print(io, "(id)")
elseif s.pow == 1
print(io, s.gen)
else
print(io, (s.gen)*"^$(s.pow)")
end
end
length(s::GSymbol) = (s.pow == 0 ? 0 : 1)