| Did you know ... | Search Documentation: |
| Pack logtalk -- logtalk-3.100.1/docs/handbook/_sources/libraries/permutations.rst.txt |
.. _library_permutations:
permutationsThis library provides predicates for generating and querying permutations over lists. The following categories of predicates are provided:
default, lexicographic, or shortlex) for
controlling output order.
Dedicated arrangements, cartesian_products, combinations,
derangements, multisets, partitions, and subsequences
libraries are also available for focused APIs on related operations. The
arrangements library is the repetition-allowed counterpart to this
library.
Open the `../../apis/library_index.html#permutations <../../apis/library_index.html#permutations>`__ link in a web browser.
To load all entities in this library, load the loader.lgt file:
::
| ?- logtalk_load(permutations(loader)).
To test this library predicates, load the tester.lgt file:
::
| ?- logtalk_load(permutations(tester)).