Transform or synthesize array

There are several scenarios that we would like to sum or find the max, min of values of array