partitions — Logtalk 3.100.1

object

# `partitions`

Implementation of set partition operations over lists.

Availability:
`logtalk_load(partitions(loader))`
Author: Paulo Moura
Version: 1:0:0
Date: 2026-05-12
Compilation flags:
`static, context_switching_calls`
Implements:
`public` partitions_protocol
Uses:
fast_random(Algorithm)
integer
list
natural
Remarks:
(none)
Inherited public predicates:
count_distinct_partitions/2 count_distinct_partitions/3 count_partitions/2 count_partitions/3 distinct_partition/2 distinct_partition/3 distinct_partition/4 distinct_partition_index/3 distinct_partition_index/4 distinct_partition_index/5 distinct_partitions/2 distinct_partitions/3 distinct_partitions/4 next_partition/3 next_partition/4 nth_distinct_partition/3 nth_distinct_partition/4 nth_distinct_partition/5 nth_partition/3 nth_partition/4 nth_partition/5 partition/2 partition/3 partition/4 partition_index/3 partition_index/4 partition_index/5 partitions/2 partitions/3 partitions/4 previous_partition/3 previous_partition/4 random_distinct_partition/2 random_distinct_partition/3 random_partition/2 random_partition/3 sample_distinct_partitions/3 sample_distinct_partitions/4 sample_partitions/3 sample_partitions/4

## 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)