Copyright | (c) Eric Bailey 2025 |
---|---|
License | MIT |
Maintainer | eric@ericb.me |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Data.Rhythm.Permutations
Description
Strictly lexicographically larger permutations of a given list of numbers.
Synopsis
- permutations :: Integral a => [a] -> [[a]]
Documentation
permutations :: Integral a => [a] -> [[a]] Source #
Strictly lexicographically larger permutations of a given list of numbers.
>>>
permutations [1,2,3]
[[1,2,3],[2,1,3],[3,2,1],[2,3,1],[3,1,2],[1,3,2]]>>>
permutations [3,1,2]
[[3,1,2],[3,2,1]]