-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement LeftSemigroupIdeal and RightSemigroupIdeal #1009
base: main
Are you sure you want to change the base?
Conversation
Number of arguments error resolved
Number of arguments error resolved
gap/ideals/ideals.gd
Outdated
DeclareGlobalFunction("SemigroupIdeal"); | ||
DeclareGlobalFunction("LeftSemigroupIdeal"); | ||
DeclareGlobalFunction("RightSemigroupIdeal"); | ||
DeclareGlobalFunction("AnySemigroupIdealInputParsing"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DeclareGlobalFunction("AnySemigroupIdealInputParsing"); | |
DeclareGlobalFunction("AnySemigroupIdealInputParsing"); |
I'd suggest removing this from here, and instead doing
BindGlobal("_AnySemigroupIdealInputParsing", ...)
in the .gi
file instead. Note also the _
in the name (either do this or just put the function into the record SEMIGROUPS
, by doing:
SEMIGROUPS.AnySemigroupIdealInputParsing := function(...
again in the .gi
file. Same goes for all of the "internal" functions that start with "Any"
gap/ideals/ideals.gi
Outdated
InstallGlobalFunction(SemigroupIdeal, | ||
function(arg...) | ||
InstallGlobalFunction(AnySemigroupIdealInputParsing, | ||
function(inputArgs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be better to stick to arg...
and whenever you want to call this function do:
CallFuncList(AnySemigroup..., arg);
this is like doing
AnySemigroup...(*arg)
in python
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few very minor changes, and some tests and I'll be happy to merge this!
A pull request for #939.
Implements LeftSemigroupIdeal using a LeftMagmaIdeal and RightSemigroupIdeal as a RightMagmaIdeal.