Copying and filtering Ruby arrays
I think your answer is perfectly valid and much better than the editorial solution.

I only have two suggestions to improve it further:


variable name i is commonly used for array indexes. Using it instead for array values can confuse the reader of the code.
return is not needed - Ruby functions will implicitly return the value of the last evaluated expression.