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.
For code golfers
Test thread please ignore
That sounds more like "Puzzle". I think "Tutorials" is intended to be that the actual task is clear, but how to achieve it is guided/taught in some form, either in description or in initial solution. For example.
I don't think I would classify this kata as a tutorial.
Fixed
Fixed
Fixed
JS Fork adding sample tests and random tests. Some solutions which threw strings instead of errors may be invalidated due to how
assert.throws
works in newer JS versionApproved
Looks pretty good to me. Thanks for all your work!
I used the above image to build an SVG and inline it in the description. See fork
The first part is here
My understanding (which may be wrong) of the second part is that
tee
simply returns new iterables which create their ownStopIteration
exception, rather than it erasing data from the originalStopIteration
exception and reraising it.send
in Python is a method of generators, and not of iterables, which is why it is "removed" (becausetee
accepts and returns iterables, not specifically generators). In JS the equivalent ofsend
is simply the argument tonext
, and is therefore a part of theiterable
protocol. It of course doesn't make sense for a cloned iterable to pass on any sent values, so the option would either be to just ignore any sent values, or have solutions enforce no sent value by requiring they throw an error or something.Loading more items...