1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-25 02:05:30 +01:00

no multiplication of GSymbols -- no Words without parents allowed

This commit is contained in:
kalmar 2017-05-11 17:45:00 +02:00
parent 528228e46e
commit 1c7113932d

View File

@ -24,8 +24,6 @@ abstract GSymbol
length(s::GSymbol) = (s.pow == 0 ? 0 : 1) length(s::GSymbol) = (s.pow == 0 ? 0 : 1)
(*){T<:GSymbol}(s::T, t::T) = return GWord{T}([s])*t
change_pow(s::GSymbol, n::Int) = throw(ArgumentError("Define change_pow function for $(typeof(s))!")) change_pow(s::GSymbol, n::Int) = throw(ArgumentError("Define change_pow function for $(typeof(s))!"))
symbols::Vector{T} symbols::Vector{T}