peek method

dynamic peek(
  1. int index
)

Implementation

dynamic peek(int index) {
  return stack[index];
}