Collapsed par/memo/Map into a single map function with parameters.