.. index:: single: combinations
.. _combinations/0:

.. rst-class:: right

**object**

``combinations``
================

Implementation of combinations operations over lists.

| **Availability:** 
|    ``logtalk_load(combinations(loader))``

| **Author:** Paulo Moura
| **Version:** 2:1:0
| **Date:** 2026-05-21

| **Compilation flags:**
|    ``static, context_switching_calls``


| **Implements:**
|    ``public`` :ref:`combinations_protocol <combinations_protocol/0>`
| **Uses:**
|    :ref:`fast_random(Algorithm) <fast_random/1>`
|    :ref:`list <list/0>`
|    :ref:`natural <natural/0>`

| **Remarks:**
|    (none)

| **Inherited public predicates:**
|     :ref:`combinations_protocol/0::combination/3`  :ref:`combinations_protocol/0::combination/4`  :ref:`combinations_protocol/0::combination_index/4`  :ref:`combinations_protocol/0::combination_index/5`  :ref:`combinations_protocol/0::combinations/3`  :ref:`combinations_protocol/0::combinations/4`  :ref:`combinations_protocol/0::count_combinations/3`  :ref:`combinations_protocol/0::count_distinct_combinations/3`  :ref:`combinations_protocol/0::distinct_combination/3`  :ref:`combinations_protocol/0::distinct_combination/4`  :ref:`combinations_protocol/0::distinct_combination_index/4`  :ref:`combinations_protocol/0::distinct_combinations/3`  :ref:`combinations_protocol/0::distinct_combinations/4`  :ref:`combinations_protocol/0::next_combination/3`  :ref:`combinations_protocol/0::nth_combination/4`  :ref:`combinations_protocol/0::nth_combination/5`  :ref:`combinations_protocol/0::nth_distinct_combination/4`  :ref:`combinations_protocol/0::previous_combination/3`  :ref:`combinations_protocol/0::random_combination/3`  :ref:`combinations_protocol/0::random_distinct_combination/3`  :ref:`combinations_protocol/0::sample_combinations/4`  :ref:`combinations_protocol/0::sample_distinct_combinations/4`  

.. contents::
   :local:
   :backlinks: top

Public predicates
-----------------

(no local declarations; see entity ancestors if any)

Protected predicates
--------------------

(no local declarations; see entity ancestors if any)

Private predicates
------------------

(no local declarations; see entity ancestors if any)

Operators
---------

(none)

