-
Notifications
You must be signed in to change notification settings - Fork 162
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
Rewrite and officially document PlainListCopy
#4332
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2371,41 +2371,6 @@ DeclareGlobalFunction( "IntersectionBlist" ); | |
## | ||
DeclareGlobalFunction( "ListWithIdenticalEntries" ); | ||
|
||
|
||
############################################################################# | ||
## | ||
#F PlainListCopy( <list> ) . . . . . . . . make a plain list copy of a list | ||
## | ||
## <ManSection> | ||
## <Func Name="PlainListCopy" Arg='list'/> | ||
## | ||
## <Description> | ||
## This is intended for use in certain rare situations, | ||
## such as before objectifying. | ||
## Normally, <C>ConstantAccessTimeList</C> should be enough. | ||
## </Description> | ||
## </ManSection> | ||
## | ||
DeclareGlobalFunction("PlainListCopy"); | ||
|
||
|
||
############################################################################# | ||
## | ||
#O PlainListCopyOp( <list> ) . . . . . . . .return a plain version of a list | ||
## | ||
## <ManSection> | ||
## <Oper Name="PlainListCopyOp" Arg='list'/> | ||
## | ||
## <Description> | ||
## This operation returns a list equal to its argument, in a plain list | ||
## representation. This may be the argument converted in place, or | ||
## may be new. It is only intended to be called by <C>PlainListCopy</C>. | ||
## </Description> | ||
## </ManSection> | ||
## | ||
DeclareOperation("PlainListCopyOp", [IsSmallList]); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we say here that it is a kernel function, in case people wonder where to find it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (I am also fine with merging as-is, just wondering) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've now moved the documentation inline in the doc XML, because it was weird here -- but maybe that's a bad idea too. We could start scanning C code for GAPDoc? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In |
||
|
||
|
||
############################################################################# | ||
## | ||
#O PositionNot( <list>, <val>[, <from>] ) . . . . . . . . . find not <val> | ||
|
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.
This exists and was a typo for ConstantTimeAccessList
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.
That said, I don't think this sentence was helpful, so I am fine with removing it :-)