derangements — Logtalk 3.100.1

object

# `derangements`

Implementation of derangement operations over lists.

Availability:
`logtalk_load(derangements(loader))`
Author: Paulo Moura
Version: 1:0:0
Date: 2026-05-12
Compilation flags:
`static, context_switching_calls`
Implements:
`public` derangements_protocol
Uses:
fast_random(Algorithm)
list
natural
permutations
Remarks:
(none)
Inherited public predicates:
count_derangements/2 count_distinct_derangements/2 count_partial_derangements/3 derangement/2 derangement/3 derangement_index/3 derangement_index/4 derangements/2 derangements/3 distinct_derangement/2 distinct_derangement/3 distinct_derangement_index/3 distinct_derangements/2 distinct_derangements/3 next_derangement/3 nth_derangement/3 nth_derangement/4 nth_distinct_derangement/3 previous_derangement/3 random_derangement/2 random_distinct_derangement/2 sample_derangements/3 sample_distinct_derangements/3

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