Skip to content

Commit

Permalink
fix: contains works only for Strings
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmarek committed Nov 28, 2023
1 parent df11e1e commit 81669c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Characters/character_tables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function CharacterTable(
cclasses = conjugacy_classes(G),
)
# make sure that the first class contains the indentity
k = findfirst(contains(one(G)), cclasses)
k = findfirst(cl -> one(G) in cl, cclasses)
cclasses[k], cclasses[1] = cclasses[1], cclasses[k]

Ns = [CMMatrix(cclasses, i) for i in 1:length(cclasses)]
Expand Down

0 comments on commit 81669c1

Please sign in to comment.