mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-25 18:15:29 +01:00
add FreeGroup(n::Int) convenience
This commit is contained in:
parent
1284ded447
commit
51694c4fbf
@ -42,6 +42,8 @@ elem_type(::FreeGroup) = FreeGroupElem
|
|||||||
|
|
||||||
FreeSymbol(s::String) = FreeSymbol(s,1)
|
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])
|
FreeGroup(a::Vector{String}) = FreeGroup([FreeSymbol(i) for i in a])
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user