Posts by Cleyton Silva • 9 points
1 post
-
-1
votes1
answer41
viewsQ: Subtraction between elements in Ruby array
Hello, I have an array of values: values = [3, 5, 12, 1, 2] I would like in the first iteration all elements of the array to be subtracted by the first element (Ex, 5-3, 12-3, 1-3, 2-3) # [2, 9, -2,…