repeat ====== Repeat the state space of a pool a specified number of times, producing a new pool whose total number of states is ``times`` × the input pool's state count — each input state appears ``times`` times consecutively. .. code-block:: python import poolparty as pp pp.init() ---- Parameters ---------- .. list-table:: :widths: 20 18 12 50 :header-rows: 1 * - Parameter - Type - Default - Description * - ``pool`` - ``Pool`` - *(required)* - Input pool whose states will be repeated. * - ``times`` - ``int`` - *(required)* - Number of times to repeat each state. * - ``prefix`` - ``str | None`` - ``None`` - Prefix for the operation node name in the pool graph. * - ``iter_order`` - ``float | None`` - ``None`` - Iteration priority for downstream multi-pool iteration. * - ``cards`` - ``dict | list | None`` - ``None`` - Design card columns to include in library output. ---- .. note:: Only the most commonly used parameters are shown above. For the full parameter list, see :func:`~poolparty.repeat` in the :doc:`API Reference `. Examples -------- Repeat a Two-Sequence Pool Three Times ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Expand a two-sequence pool to six draws by repeating each state three times in order. .. code-block:: python pool = pp.from_seqs(["AAAA", "CCCC"], mode="sequential") tripled = pp.repeat(pool, times=3) tripled.print_library() .. raw:: html