show should be implemented for concrete subtypes of GSymbol
This commit is contained in:
parent
eb71dfe26e
commit
ba3ca8a0ba
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue