tags | languages | resources |
---|---|---|
ruby, enumerable, metaprogramming, blocks, iteration |
ruby |
0 |
Now that we've built our own each method, let's build our own collect method! Remember that .collect
returns a new array object containing elements modified by the block.
Write your code in "my_collect.rb". Get the tests to pass.