Skip to content

Commit 7c2da00

Browse files
simplified AddUniversalMorphismIntoDirectProductWithGivenDirectProduct
for FinSets
1 parent 21e4a20 commit 7c2da00

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

gap/FinSetsForCAP.gi

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -609,13 +609,11 @@ end );
609609
##
610610
AddUniversalMorphismIntoDirectProductWithGivenDirectProduct( category_of_finite_sets,
611611
function ( category_of_finite_sets, D, test_object, tau, T )
612-
local S, Graph;
612+
local Graph;
613613

614-
S := Source( tau[1] );
614+
Graph := List( AsList( test_object ), x -> [ x, List( tau, f -> f(x) ) ] );
615615

616-
Graph := List( AsList( S ), x -> [ x, List( tau, f -> f(x) ) ] );
617-
618-
return MapOfFinSetsNC( S, Graph, T );
616+
return MapOfFinSetsNC( test_object, Graph, T );
619617

620618
end );
621619

0 commit comments

Comments
 (0)