<div dir="auto">I actually plan to follow through on that email. I just can't right now because of work emergencies. Literally as soon as those calm down, top of my list is to give Viktor the lost of code examples where I am using the windowBy Gatherer he gave me.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 25, 2024, 6:24 PM  <<a href="mailto:openjdk.ruwen.reddig@mailbox.org">openjdk.ruwen.reddig@mailbox.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

  
   
 
 <div>
  <div> 
   <div role="complementary" aria-label="Overload window methods in Gatherers with step size"> 
    <div>
     Hello,
    </div> 
    <br> 
    <div>
     thanks for the amazing presentations during the Java 22 release stream.
    </div> 
    <br>I highly appreciated the new JEP 461 (<a href="https://openjdk.org/jeps/461" target="_blank" rel="noreferrer">https://openjdk.org/jeps/461</a>), especially the windowing functions windowFixed and windowSliding.
    <br> 
    <div>
     I would like to propose to overload both methods, so they accept the step size as an additional parameter:
    </div> 
    <br> 
    <div>
     - windowFixed(int windowSize, int stepSize)
    </div> 
    <div>
     - windowSliding(int windowSize, int stepSize)
    </div> 
    <br> 
    <div>
     This would make the existing functionality more flexible without introducing much additional concepts to learn/understand.
    </div> 
    <br>That being said, I read <a href="https://mail.openjdk.org/pipermail/core-libs-dev/2024-January/117718.html" target="_blank" rel="noreferrer">https://mail.openjdk.org/pipermail/core-libs-dev/2024-January/117718.html</a> and agree that the initial set of functions should be kept small. So looking forward how more experienced developers are gauging the trade-offs.
    <br> 
    <div>
     Best reagards
    </div> 
    <div>
     Ruwen Reddig
    </div> 
   </div> 
  </div>
 </div>
</blockquote></div>