rotateStackUp method Null safety

void rotateStackUp()

The R key

Implementation

void rotateStackUp() {
  void f(final List<Value>? st) {
    if (st != null) {
      Value t = st[3];
      st[3] = st[2];
      st[2] = st[1];
      st[1] = st[0];
      st[0] = t;
    }
  }

  f(_stack);
  f(_imaginaryStack);
  display.window = 0;
  needsSave = true;
  _clxDone = false;
}