Introduction

arrangements-package

arrangements: Fast Generators and Iterators for Permutations, Combinations, Integer Partitions and Compositions

Generating arrangements

combinations()

Combinations generator

permutations()

Permutations generator

partitions()

Partitions generator

compositions()

Compositions generator

Iterating arrangements

Combinations icombinations()

Combinations iterator

Permutations ipermutations()

Permutations iterator

Partitions ipartitions()

Partitions iterator

Compositions icompositions()

Compositions iterator

Utilities

ncombinations()

Number of combinations

npermutations()

Number of permutations

npartitions()

Number of partitions

ncompositions()

Number of compositions