1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-25 02:05:30 +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 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) length(s::GSymbol) = (s.pow == 0 ? 0 : 1)