I've decided to make it the same as the original kumite: an up to N generator, and converting the thing into list manually for tests. Obviously, it should return an array (small n) or just generator (big n).
the caller/tester will almost never call your function, then convert the result to a list. Meaning you actually need a second function to actually make the list. That is... in normal condition of usage of the test framework.
Super!
watching this little game evolve was quite nice, I love that someone added a num gen. That made this fizzbuzz worth looking at.
Goodwork.
I've decided to make it the same as the original kumite: an
up to N
generator, and converting the thing into list manually for tests. Obviously, it should return an array (smalln
) or just generator (bign
).the caller/tester will almost never call your function, then convert the result to a list. Meaning you actually need a second function to actually make the list. That is... in normal condition of usage of the test framework.
Cool...
thank You. Hope that would give me a programming job in near future ;)
rotfl.. what was i thinking. of course you're right :) i've replaced that.
thank you.
[fb for fb in fizzBuzz(17)]
=>list(fizzBuzz(17))
Wow...You're pretty good...:d
Thanks for the feedback.