Skip to content

Commit 01b9de5

Browse files
allow building towers of non-yet finalized categories
1 parent f4f8829 commit 01b9de5

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

CAP/PackageInfo.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "CAP",
1212
Subtitle := "Categories, Algorithms, Programming",
13-
Version := "2025.06-09",
13+
Version := "2025.07-01",
1414
Date := (function ( ) if IsBound( GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE ) then return GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE; else return Concatenation( ~.Version{[ 1 .. 4 ]}, "-", ~.Version{[ 6, 7 ]}, "-01" ); fi; end)( ),
1515
License := "GPL-2.0-or-later",
1616

CAP/gap/CategoriesCategory.gi

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,21 @@ InstallMethod( CapFunctor,
130130
[ IsString, IsCapCategory, IsCapCategory ],
131131

132132
function( name, source, range )
133+
local source_list, objectified_functor;
133134

134-
return CapFunctor( name, [ source ], range );
135+
source_list := CAP_INTERNAL_NICE_FUNCTOR_INPUT_LIST( [ source ] );
136+
137+
objectified_functor := CreateCapCategoryMorphismWithAttributes( CapCat,
138+
AsCatObject( source ),
139+
AsCatObject( range ),
140+
Name, name,
141+
InputSignature, source_list );
142+
143+
objectified_functor!.input_source_list := source_list;
144+
145+
objectified_functor!.number_arguments := Length( source_list );
146+
147+
return objectified_functor;
135148

136149
end );
137150

0 commit comments

Comments
 (0)