@@ -55,14 +55,8 @@ InstallMethodForCompilerForCAP( FinSetOp,
5555 [ IsCategoryOfSkeletalFinSets, IsBigInt ] ,
5656
5757 function ( cat, n )
58- local int;
59-
60- int := CreateCapCategoryObjectWithAttributes( cat, Length, n );
61-
62- # % CAP_JIT_DROP_NEXT_STATEMENT
63- Assert ( 4 , IsWellDefined( int ) );
6458
65- return int ;
59+ return ObjectConstructor( cat, n ) ;
6660
6761end );
6862
@@ -96,17 +90,8 @@ InstallOtherMethodForCompilerForCAP( MapOfFinSets,
9690 [ IsCategoryOfSkeletalFinSets, IsSkeletalFiniteSet, IsList, IsSkeletalFiniteSet ] ,
9791
9892 function ( cat, s, G, t )
99- local map;
10093
101- map := CreateCapCategoryMorphismWithAttributes( cat,
102- s,
103- t,
104- AsList, G );
105-
106- # % CAP_JIT_DROP_NEXT_STATEMENT
107- Assert ( 4 , IsWellDefined( map ) );
108-
109- return map;
94+ return MorphismConstructor( cat, s, G, t );
11095
11196end );
11297
@@ -257,9 +242,15 @@ InstallGlobalFunction( INSTALL_FUNCTIONS_FOR_SKELETAL_FIN_SETS,
257242
258243# #
259244AddObjectConstructor( SkeletalFinSets,
260- function ( SkeletalFinSets, n )
245+ function ( cat, n )
246+ local int;
261247
262- return FinSet( SkeletalFinSets, n );
248+ int := CreateCapCategoryObjectWithAttributes( cat, Length, n );
249+
250+ # % CAP_JIT_DROP_NEXT_STATEMENT
251+ Assert ( 4 , IsWellDefined( int ) );
252+
253+ return int;
263254
264255end );
265256
@@ -273,9 +264,18 @@ end );
273264
274265# #
275266AddMorphismConstructor( SkeletalFinSets,
276- function ( SkeletalFinSets, source, map, range )
267+ function ( cat, source, images, range )
268+ local map;
269+
270+ map := CreateCapCategoryMorphismWithAttributes( cat,
271+ source,
272+ range,
273+ AsList, images );
277274
278- return MapOfFinSets( SkeletalFinSets, source, map, range );
275+ # % CAP_JIT_DROP_NEXT_STATEMENT
276+ Assert ( 4 , IsWellDefined( map ) );
277+
278+ return map;
279279
280280end );
281281
0 commit comments