This PR applies a couple of minor refactoring, e.g. to avoid unnecessary references and allocations, and re-express the usage of a couple of combinators to elide intermediate iterations and/or shorten pipelines.
Hopefully, I haven't gone too far with piping to the point of obscuring the underlying logic :see_no_evil:, I'd be keen to know your thoughts.
IMPORTANT: Ideally, there shall be no behaviour change. However, I have not had the time to test it all thoroughly yet.
This PR applies a couple of minor refactoring, e.g. to avoid unnecessary references and allocations, and re-express the usage of a couple of combinators to elide intermediate iterations and/or shorten pipelines.
Hopefully, I haven't gone too far with piping to the point of obscuring the underlying logic :see_no_evil:, I'd be keen to know your thoughts.
IMPORTANT: Ideally, there shall be no behaviour change. However, I have not had the time to test it all thoroughly yet.