Skip to content

Commit

Permalink
FIX: AssociatedPartition for empty partition
Browse files Browse the repository at this point in the history
This closes gap-system#3854
  • Loading branch information
hulpke committed Jan 21, 2020
1 parent 1228688 commit 7d3e414
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/combinat.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2466,6 +2466,7 @@ InstallGlobalFunction(AssociatedPartition,function(lambda)
local res, k, j;
res := [];
k := Length(lambda);
if k=0 then return res;fi; # empty partition
for j in [1..lambda[1]] do
if j <= lambda[k] then
res[j] := k;
Expand Down

0 comments on commit 7d3e414

Please sign in to comment.