Sliding iterator for scala

I’m falling more and more in love with scala’s collection api. There ist so many really awesome stuff already implemented that normally drives you mad when you have to implment by yourself.
I was writing a check that should check if a field contains a string that was produced by „stroking“ the keyboard. Just typing for example qwertzui instead of anything useful. So I added a method to check against those string vom q to p. But of course I also wanted to add the possibility to check against a substring with a given length of that string. There comes the sliding iterator into play:


GD Star Rating

Kommentar verfassen