Skip to content

Commit 199be39

Browse files
committed
Use FunctionWithNamedArguments in CreateCapCategory
bump CAP to v2025.08-02
1 parent ad7fe35 commit 199be39

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

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.08-01",
13+
Version := "2025.08-02",
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/CAP.gi

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -613,12 +613,18 @@ end );
613613
##
614614
InstallMethod( CreateCapCategory,
615615
[ IsString, IsFunction, IsFunction, IsFunction, IsFunction ],
616-
617-
function( name, category_filter, object_filter, morphism_filter, two_cell_filter )
618-
619-
return CreateCapCategoryWithDataTypes( name, category_filter, object_filter, morphism_filter, two_cell_filter, fail, fail, fail );
620-
621-
end );
616+
617+
FunctionWithNamedArguments(
618+
[
619+
[ "is_computable", true ],
620+
[ "overhead", true ],
621+
],
622+
function( CAP_NAMED_ARGUMENTS, name, category_filter, object_filter, morphism_filter, two_cell_filter )
623+
624+
return CreateCapCategoryWithDataTypes( name, category_filter, object_filter, morphism_filter, two_cell_filter,
625+
fail, fail, fail : is_computable := CAP_NAMED_ARGUMENTS.is_computable, overhead := CAP_NAMED_ARGUMENTS.overhead );
626+
627+
end ) );
622628

623629
##
624630
InstallMethod( CanCompute,

0 commit comments

Comments
 (0)