📜  指数运算符 haskell - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:35.544000             🧑  作者: Mango

代码示例1
# There are actually three exponentiation operators: (^), (^^) and (**). 
# ^ is non-negative integral exponentiation, 
# ^^ is integer exponentiation, and ** is floating-point exponentiation

(^) :: (Num a, Integral b) => a -> b -> a
(^^) :: (Fractional a, Integral b) => a -> b -> a
(**) :: Floating a => a -> a -> a