How to pass parameter to custom iterator
I'm making a custom iterator that returns every slice of a given width through a collection. I got it working with a hardcoded width but can't figure out how to make it a parameter. I want the hard-coded
3
to be replaced with that param:
1 Reply
figured it out. i thought i had to pass the parameter to
AnySequence
or AnyIterator
but i only have to pass it to windows()
: