class_docstr: A bounded functional stack implementation. Elements may be pytrees.
docstr: Private constructor.
docstr_tok: ["Private","constructor","."]
code: def __init__(self, size, data):
      """Private constructor."""
      self._size = size
      self._data = data
  
file_path: jax/jax/_src/lax/stack.py
imports: from __future__ import annotations
  from typing import Any
  import jax
  from jax import lax
  import jax.numpy
label_desc: Use image node_id 1 to create a new Stack object  with example: obj = Stack(size, data)