By function-call/procedure-call pairs, I mean pairs of functions that do the same thing, except one returns it's result whereas the other alters it's argument(s) to be the result. For example the pair List
/Apply
.
List(list, func)
Returns the list resulting from applying the functionfunc
to every value oflist
.Apply(list, func)
Applies the functionfunc
to every value of a mutable listlist
, changinglist
.
I've become annoyed of writing my own functions to find that GAP already had a built in version I should be using, so it'd help to know these pairs. Like, does Filtered
have a procedural counterpart I don't know about? Or do I need to write my own? If a function does have a counterpart will it necessarily be listed in the documentation for that function? The only other such pair that I can think of right now is Concatenation
/Append
. What are other such pairs of functions/procedures in GAP?