https://github.com/fifth-postulate/combinatorics
Pure Elm project providing common combinatoric primitives like permutations and selections.
https://github.com/fifth-postulate/combinatorics
Last synced: 5 days ago
JSON representation
Pure Elm project providing common combinatoric primitives like permutations and selections.
- Host: GitHub
- URL: https://github.com/fifth-postulate/combinatorics
- Owner: fifth-postulate
- License: mit
- Created: 2018-10-20T19:25:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-20T20:12:31.000Z (over 7 years ago)
- Last Synced: 2025-10-20T15:33:30.838Z (9 months ago)
- Language: Elm
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# combinatorics
Pure Elm project providing common combinatoric primitives like permutations and
selections.
[_Combinatorics_][combinatorics] is
> an area of mathematics primarily concerned with counting, both as a means and
> an end in obtaining results, and certain properties of finite structures. It is
> closely related to many other areas of mathematics and has many applications
> ranging from logic to statistical physics, from evolutionary biology to computer
> science, etc.
## Usage
You can install the package with the following command.
```sh
elm install fifth-postulate/combinatorics
```
Proceed to import the package in your code and use it.
```elm
import Combinatorics
permutations : List (List Int)
permutations =
Combinatorics.permutationsOf [1, 2, 3, 4]
```
[combinatorics]: https://en.wikipedia.org/wiki/Combinatorics