public <R> R map(@NonNull Function<Tuple, R> function) {
      return function.apply(this);
   }
public < R > R map ( @ NonNull Function < Tuple , R > function ) { return function . apply ( this ) ; }
Maps the tuple to another a data type.

@param <R>      the type being mapped to
@param function the mapping function
@return the result of the mapping function