rename from apply() to map() and return list of function return values