Copyright | (c) Hans Hoglund 2012-2015 |
---|---|
License | BSD-style |
Maintainer | hans@hanshoglund.se |
Stability | experimental |
Portability | non-portable (TF,GNTD) |
Safe Haskell | None |
Language | Haskell2010 |
- data Division
- divisions :: Int -> [Division]
- getDivision :: Division -> (Int, Int)
- showDivision :: Division -> String
- showDivisionR :: Division -> String
Documentation
A division represents a subset of a finite group of performers.
For example a group may be divided into three equal divisions,
designated (0, 3)
, (1, 3)
and (2, 3)
respectively.
divisions :: Int -> [Division] Source
Get all possible divisions for a given divisor in ascending order.
getDivision :: Division -> (Int, Int) Source
showDivision :: Division -> String Source
Show division in ordinary numerals.
showDivisionR :: Division -> String Source
Show division in roman numerals.