I am getting ready to tag a new release of the Algorithms package, and there are a couple new additions that I'd like to discuss the naming for before they become part of a release.
First up is
slidingWindows(ofCount:), which you can read about in the Sliding Windows guide. This method was originally called
windows(ofCount:), and was changed to the current name based on a question about overlap with the Windows platform.
My questions here:
slidingWindows(ofCount:)make a good name for this operation?
windows(ofCount:)really cause confusion with the similarly-named platform?
- If the windows are sliding, are there windows-plural, or is there just one window that slides along the collection?
Many thanks to ollieatkinson for contributing this method to the package!