mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Merge pull request #1252 from gaotongfei/master
[haskell/zh-cn]fix error
This commit is contained in:
commit
5dfbce9016
@ -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