Adds a map function which return the array returned from the named function