If I have
ary = [7, 8, 0, 1, nil, 6] How to find the position of the maximum value in the array? I can do this, but it needs more than one line.
ary = [7, 8, 0, 1, nil, 6, 8]
ary.index(
If I have
ary = [7, 8, 0, 1, nil, 6] How to find the position of the maximum value in the array? I can do this, but it needs more than one line.
ary = [7, 8, 0, 1, nil, 6, 8]
ary.index(