Is your feature request related to a problem? Please describe.
Excludeing an iterator is achieved by using the iter package's Exclude function. This can lead to deeply nested code that can be difficult to read. The issue belongs to a series of issues that remedy that problem. See #55 for more details.
Describe the solution you'd like
Each iterator should allow Excludeing via a method rather than the function iter.Exclude.
Is your feature request related to a problem? Please describe.
Exclude
ing an iterator is achieved by using theiter
package'sExclude
function. This can lead to deeply nested code that can be difficult to read. The issue belongs to a series of issues that remedy that problem. See #55 for more details.Describe the solution you'd like
Each iterator should allow
Exclude
ing via a method rather than the functioniter.Exclude
.For example, this test:
Could instead read like:
Does this incur a breaking change?
No.
Do you intend to build this feature yourself?
No - I'd like to offer this to first-time contributors ideally.
Checklist
.Exclude(filter)
on each BaseIterExclude
is already comprehensively tested elsewhere).Example...
tests or README references toExclude
to use the method.See #57 for an example of where this was implemented for
Collect
.