mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
fix error
This commit is contained in:
parent
e898c628ef
commit
5282918d99
@ -200,13 +200,13 @@ foo 5 -- 75
|
||||
-- 你可以使用 `$` 来移除多余的括号。
|
||||
|
||||
-- 修改前
|
||||
(even (fib 7)) -- true
|
||||
(even (fib 7)) -- False
|
||||
|
||||
-- 修改后
|
||||
even . fib $ 7 -- true
|
||||
even . fib $ 7 -- False
|
||||
|
||||
-- 等价地
|
||||
even $ fib 7 -- true
|
||||
even $ fib 7 -- False
|
||||
|
||||
----------------------------------------------------
|
||||
-- 5. 类型声明
|
||||
|
Loading…
Reference in New Issue
Block a user