add FreeGroup(n::Int) convenience

This commit is contained in:
kalmar 2017-05-12 21:19:08 +02:00
parent 1284ded447
commit 51694c4fbf
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,8 @@ elem_type(::FreeGroup) = FreeGroupElem
FreeSymbol(s::String) = FreeSymbol(s,1)
FreeGroup(n::Int, symbol::String="f") = FreeGroup(["$symbol$i" for i in 1:n])
FreeGroup(a::Vector{String}) = FreeGroup([FreeSymbol(i) for i in a])
###############################################################################