Skip to content

Commit

Permalink
Cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnohilly committed Oct 17, 2024
1 parent 27c24e7 commit 89b8fe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Groups/pcgroup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ function letters(g::Union{PcGroupElem, SubPcGroupElem})
return Vector{Int}(GAPWrap.LetterRepAssocWord(w))
end

function Oscar.syllables(g::Union{PcGroupElem, SubPcGroupElem})
function syllables(g::Union{PcGroupElem, SubPcGroupElem})
l = GAPWrap.ExtRepOfObj(GapObj(g))
@assert iseven(length(l))
return Pair{Int, ZZRingElem}[l[i-1] => l[i] for i = 2:2:length(l)]
Expand All @@ -418,4 +418,4 @@ function (G::PcGroup)(sylls::Vector{Pair{Int64, ZZRingElem}})
pcgs = Oscar.GAPWrap.FamilyPcgs(GapObj(G))
x = Oscar.GAPWrap.PcElementByExponentsNC(pcgs, GapObj(e, true))
return Oscar.group_element(G, x)
end
end

0 comments on commit 89b8fe6

Please sign in to comment.