【发布时间】:2014-02-15 20:00:50
【问题描述】:
为什么会这样......
Just.(+3) $ 6.7
Just $ truncate 8.9
...但不是这个?
Just.truncate $ 8.9
我尝试将截断解析为一个简单的 Double -> Int:
let f :: Double -> Int; f = (\ x -> truncate x);
...但这似乎不是问题...
Just.f $ 5.6
<interactive>:41:1:
Failed to load interface for `Just'
Use -v to see a list of the files searched for.
非常感谢!
【问题讨论】: