Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Fixed
Fixed
I agree. The kata itself does not tell, but the random tests do.
Thanks for the feedback! Allow me to precede by saying that I'm inspired to create this kata after seeing use cases on scenarios where stateful seeding sequences for
IntStream.generate
are required. I ended up with a "clever hack" if you'd take a look at my solution, which is roughly what I did in the production code on the scenario I just talked about.I'll be documenting briefly how generating
IntStream
s work so the kata is more informational than it currently is.As for whether the infinite size was a fair requirement, I did have a second test case which tests for the fib property in leaps with
.skip((int) (Math.random() * 900)).limit(20)
, which was virtually impossible to cheat (in my opinion at least) except for the fact that it doesn't work as expected. I'll look into fixing that eventually.Fixed