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.
that's rather your comment that makes absolutely no sense.
next_item(count(2,5), 3)
makes no sense" ...tf!? :o It's an inifnite sequence. This should return None. Period. And ofc it's identifiable if the generator will generate the item or not assuming that the generators aren't random (but that's more work).count(2,5)
isn't random.range
neither is and is tested with steps too.count(2,5)
is just the mix of therange
tests and the presence ofcount
in there, so there is no reason to not test for it, with both items present in the sequence and missing. To not do so because it's problematic (to what I'd agree, especially considering the current rank) requires more specifications in the description so that the user knows what he's facing.In any case, if
count
is tested, that should be in the description that infinite sequences may occur. And if the tested step is only one, that should be told too.And about the rank: are you so much desperate to think about yourself as intelligent that you need (...like some other users) to (try to) put down any other user? Seriously, that's just boring... Or can't you identify a task for what it requires as knowledge rather than only for the implementation it needs? (we already have one like that, that's enough, imo)
Even if a simple for loop is enough (...=>
count(2,5)
...? cough ), to find how to do that require to know about iterators. Addcount
to that and you need to find a way to avoidlist(xs)
, which is what every "beginer" will try first (1)...and get no feedback about what the problem is / 2) ""beginer"" because real beginers won't even have a clue about what to do). So no, it's not 8 kyu. I'm not saying this should be yellow, but it's definitely not 8 kyu.This comment is hidden because it contains spoiler information about the solution
that doesn't change that the test about count is either inapropriate or unsufficiently tested, and that the rank is completely inappropriate for such a task.
Generators are tested in JS as well.
Edit: the description says "Given a sequence of items", so I have to agree with Unnamed that generators could be tested as well.
This comment is hidden because it contains spoiler information about the solution
Why the F... iterators are tested in the python version?
This comment is hidden because it contains spoiler information about the solution