Question about the argument type of sqrt and round

前端 未结 0 1830
鱼传尺愫
鱼传尺愫 2020-12-25 10:58

following the signature:

sqrt :: Floating a => a -> a

why is (sqrt 2) legal? Isn\'t the number 2 a Integer wh

相关标签:
回答
  • 消灭零回复
提交回复
热议问题