support variadic number of parameters in map_inplace