Ad
  • Custom User Avatar

    Fixed

  • Custom User Avatar

    Fixed

  • Custom User Avatar

    I agree. The kata itself does not tell, but the random tests do.

  • Custom User Avatar

    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 IntStreams 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.

  • Custom User Avatar