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.
Ruby :
Not an issue.
Not an issue.
You might want to add some test cases where the result of the block changes on subsequent iterations.
Code example in description should use Markdown syntax to display code properly
Thanks for the comments, tried to incorporate suggestions as best I could!
I like where this is going!
Based on the description, I was anticipating mapping the proc over the same elements repeatedly, not repeating the elements, then applying the block.
Either the description should be re-written, or the test cases should be re-done.
Fun to play with functions like this, either way!
Some suggestions:
Please use
snake_case
for Ruby methods. When in doubt, you can do worse than following the style of a language's own documentation...Please use
Test.assert_equals
instead ofTest.expect
asTest.assert_equals
provides better feedback.