add groupname(N::Int) signature

This commit is contained in:
kalmarek 2017-12-21 13:02:00 +01:00
parent 14cfc06b7e
commit 3e1ec02c8c
2 changed files with 16 additions and 11 deletions

View File

@ -72,7 +72,9 @@ end
function groupname(parsed_args) function groupname(parsed_args)
N = parsed_args["N"] N = parsed_args["N"]
return "oSAutF$(N)", N return groupname(N), N
end end
groupname(N::Int) = "oSAutF$(N)"
end # of module SAutFNs end # of module SAutFNs

View File

@ -105,6 +105,10 @@ function groupname(parsed_args)
p = parsed_args["p"] p = parsed_args["p"]
X = parsed_args["X"] X = parsed_args["X"]
return groupname(N, p, X), N
end
function groupname(N, p=0, X=false)
if p == 0 if p == 0
if X if X
name = "oSL$(N)Z⟨X⟩" name = "oSL$(N)Z⟨X⟩"
@ -114,8 +118,7 @@ function groupname(parsed_args)
else else
name = "oSL$(N)_$p" name = "oSL$(N)_$p"
end end
return name
return name, N
end end
end # of module SLNs end # of module SLNs