Skip to content

Commit 0099b00

Browse files
simplified UniversalMorphismFromCoproductWithGivenCoproduct
for SkeletalFinSets
1 parent cdb5e35 commit 0099b00

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

gap/SkeletalFinSetsForCAP.gi

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -721,13 +721,11 @@ end );
721721
##
722722
AddUniversalMorphismFromCoproductWithGivenCoproduct( SkeletalFinSets,
723723
function ( cat, L, test_object, tau, S )
724-
local T, cmp;
724+
local cmp;
725725

726-
T := Range( tau[1] );
727-
728-
cmp := Concatenation( List( [ 1 .. Length( tau ) ], x -> AsList( tau[x] ) ) );
729-
730-
return MapOfFinSets( S, cmp, T );
726+
cmp := Concatenation( List( tau, t -> AsList( t ) ) );
727+
728+
return MapOfFinSets( S, cmp, test_object );
731729

732730
end );
733731

gap/precompiled_categories/CategoryOfSkeletalFinSetsPrecompiled.gi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,9 +708,9 @@ end
708708

709709
########
710710
function ( cat_1, objects_1, T_1, tau_1, P_1 )
711-
return MapOfFinSets( P_1, Concatenation( List( [ 1 .. Length( tau_1 ) ], function ( x_2 )
712-
return AsList( tau_1[x_2] );
713-
end ) ), Range( tau_1[1] ) );
711+
return MapOfFinSets( P_1, Concatenation( List( tau_1, function ( t_2 )
712+
return AsList( t_2 );
713+
end ) ), T_1 );
714714
end
715715
########
716716

0 commit comments

Comments
 (0)