Simplify view pattern template with small function to execute transform_array_iterator class