Safe Haskell | None |
---|---|
Language | GHC2021 |
Extra math module.
Examples
>>>
import AtCoder.Extra.Math qualified as M
>>>
import Data.Semigroup (Product(..), Sum(..))
>>>
getProduct $ M.power (<>) 32 (Product 2)
4294967296>>>
getProduct $ M.stimes' 32 (Product 2)
4294967296>>>
getProduct $ M.mtimes' 32 (Product 2)
4294967296
Since: 1.0.0