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 ; }
Get all the elements from the list as an array .