Skip to content

Commit

Permalink
Merge pull request #248 from zickgraf/master
Browse files Browse the repository at this point in the history
Use FunctionWithNamedArguments
  • Loading branch information
zickgraf authored Feb 19, 2024
2 parents e6bb67d + f8c005a commit bcd2931
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SetPackageInfo( rec(

PackageName := "FinSetsForCAP",
Subtitle := "The elementary topos of (skeletal) finite sets",
Version := "2024.02-05",
Version := "2024.02-06",

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)( ),
License := "GPL-2.0-or-later",
Expand Down
10 changes: 7 additions & 3 deletions gap/SkeletalFinSets.gi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
InstallMethod( SkeletalCategoryOfFiniteSets,
[ ],

function ( )
FunctionWithNamedArguments(
[
[ "no_precompiled_code", false ],
],
function ( CAP_NAMED_ARGUMENTS )
local cat;

cat := CreateCapCategoryWithDataTypes(
Expand Down Expand Up @@ -41,7 +45,7 @@ InstallMethod( SkeletalCategoryOfFiniteSets,
Filename( DirectoriesPackageLibrary( "Toposes", "LogicForToposes" ), "PropositionsForToposes.tex" ) );
# =#

if ValueOption( "no_precompiled_code" ) <> true then
if not CAP_NAMED_ARGUMENTS.no_precompiled_code then

ADD_FUNCTIONS_FOR_SkeletalCategoryOfFiniteSetsWithMorphismsGivenByListsPrecompiled( cat );

Expand All @@ -51,7 +55,7 @@ InstallMethod( SkeletalCategoryOfFiniteSets,

return cat;

end );
end ) );

##
InstallMethod( FinSetOp,
Expand Down

0 comments on commit bcd2931

Please sign in to comment.