Procs

  • + 0 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)