/permutations

Provides a type-safe way of working with permutations in Idris

Primary LanguageIdrisBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

permutations

This is a library providing a type-safe implementation of permutations.

Installation

 $ idris --install permutations.ipkg

Use

Tips

The most useful thing this library provides is a Group instance for permutations. You can multiply two elements with <+>, invert with inverse, an so on.

Notation

The Show instance for Permutation uses cycle notation. You can read more here if you find it confusing.

Documentation

Documentation.