You are viewing a single comment's thread. Return to all comments →
proc_square_number = proc {|proc_sum_array| proc_sum_array **2 }
proc_sum_array = proc {|my_array| my_array.sum} my_array = gets.split().map(&:to_i)
Seems like cookies are disabled on this browser, please enable them to open this website
Procs
You are viewing a single comment's thread. Return to all comments →
proc_square_number = proc {|proc_sum_array| proc_sum_array **2 }
proc_sum_array = proc {|my_array| my_array.sum} my_array = gets.split().map(&:to_i)