From 8cb9f12b280948f37ce7aa060cabea95e7ce12c8 Mon Sep 17 00:00:00 2001 From: Greg Shivcharran Date: Mon, 26 Oct 2020 14:19:22 +0000 Subject: [PATCH] Done. --- square_array.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/square_array.rb b/square_array.rb index 852a8fe3..8c84deae 100644 --- a/square_array.rb +++ b/square_array.rb @@ -1,3 +1,3 @@ def square_array(array) - # your code here -end \ No newline at end of file + array.each_with_object([]) {|x, arr| arr << x ** 2 } +end