-
Notifications
You must be signed in to change notification settings - Fork 181
Open
Labels
kind: enhancementLabel for issues suggesting enhancements; and for pull requests implementing enhancementsLabel for issues suggesting enhancements; and for pull requests implementing enhancementstopic: library
Description
E.g. make the surjective option to RestrictedMapping that the method for action homomorphism supports "official" and implement it for all.
Or even add a general CoestrictedMapping which restrict the range -- though for efficiency reasons, one should always be able to ...
- restrict the source and range simultaneously (so that one does not have to construct two new mappings, one of which is a temporary value and discarded),
- restrict explicitly the Range to the Image, to avoid the need for well-definedness tests
Since "restrict range to image" in my personal experience is what I most commonly need, I think adding this surjective option would be great. Though perhaps it should not be an option (because those can lead to unexpected side effects, due to being "global"), but rather an optional third argument set to the string "surjective" or something like that. (This is when I sometimes wish we had "proper" keyword arguments)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind: enhancementLabel for issues suggesting enhancements; and for pull requests implementing enhancementsLabel for issues suggesting enhancements; and for pull requests implementing enhancementstopic: library