clone method

Stack<E> clone()

Creates a copy of this Stack.

Implementation

Stack<E> clone() {
  return Stack<E>.from(_elements);
}