Re-wrote revise_multiple_range_array() to use map and lambda instead of for-loops where possible