shorten printing of types
This commit is contained in:
parent
f883b5172e
commit
70bd59e9b9
|
@ -71,6 +71,9 @@ mutable struct FPGroupElement{Gr<:AbstractFPGroup,W<:AbstractWord} <: AbstractFP
|
|||
new{Gr, W}(word, UInt(0), G)
|
||||
end
|
||||
|
||||
Base.show(io::IO, ::Type{<:FPGroupElement{Gr}}) where {Gr} =
|
||||
print(io, FPGroupElement, "{$Gr, …}")
|
||||
|
||||
word(f::AbstractFPGroupElement) = f.word
|
||||
|
||||
#convenience
|
||||
|
@ -203,6 +206,9 @@ function Base.show(io::IO, G::FPGroup)
|
|||
print(io, "⟩")
|
||||
end
|
||||
|
||||
Base.show(io::IO, ::Type{<:FPGroup{T}}) where {T} =
|
||||
print(io, FPGroup, "{$T, …}")
|
||||
|
||||
## GSymbol aka letter of alphabet
|
||||
|
||||
abstract type GSymbol end
|
||||
|
|
Loading…
Reference in New Issue