code: public OtpErlangObject[] elements() {
          if (arity() == 0) {
              return NO_ELEMENTS;
          }
          final OtpErlangObject[] res = new OtpErlangObject[arity()];
          System.arraycopy(elems, 0, res, 0, res.length);
          return res;
      }
docs: Get all the elements from the list as an array.
  
  @return an array containing all of the list's elements.