code: public static MutableDoubleTuple reversed(MutableDoubleTuple t)
      {
          Objects.requireNonNull(t, "The input tuple is null");
          return new AbstractMutableDoubleTuple()
          {
              @Override
              public int getSize()
              {
                  return t.getSize();
              }
  
              @Override
              public double get(int index)
              {
                  return t.get(t.getSize() - 1 - index);
              }
  
              @Override
              public void set(int index, double value)
              {
                  t.set(t.getSize() - 1 - index, value);
              }
          };
      }
docs: Creates a new tuple that is a reversed <i>view</i> on the given
  tuple. Changes in the given tuple will be visible in the returned
  tuple, and vice versa.<br>
  <br>
  In order to create a new, reversed tuple from a given one, the
  {@link #reverse(DoubleTuple, MutableDoubleTuple)} method may
  be used.
  
  @param t The tuple
  @return The reversed view on the tuple
  @throws NullPointerException If the given tuple is <code>null</code>