小编Ing*_*전인건的帖子

Haskell 中的“Fix”类型和“fix”函数如何相同?

我试图说服自己类型Fix和功能fix是一回事。
但我找不到它们定义之间的相关性

-- definition of fix 
fix :: (p -> p) -> p
fix f = let {x = f x} in x -- or fix f = f (fix f)
-- definition of Fix
newtype Fix f = Fix { unFix :: f (Fix f) }
Run Code Online (Sandbox Code Playgroud)

构造函数如何Fix适应 的形式(x -> x) -> x

recursion haskell fixpoint-combinators

6
推荐指数
2
解决办法
205
查看次数

标签 统计

fixpoint-combinators ×1

haskell ×1

recursion ×1