Modify Map_() for k-ary functions