未验证 提交 4f9ac377 编写于 作者: G Guilherme de Andrade 提交者: GitHub

fix: use concat instead of append

At line 315, the `fortune` function was defined using `append`, which is not compatible with the expected behavior.
This PR suggests the usage of `concat` instead of `append`, so the output of the `fortune` function would be the expected one.
上级 d4d8fed7
......@@ -312,7 +312,7 @@ Now, just like `Nothing`, we are short-circuiting our app when we return a `Left
```js
// fortune :: Number -> String
const fortune = compose(append('If you survive, you will be '), toString, add(1));
const fortune = compose(concat('If you survive, you will be '), toString, add(1));
// zoltar :: User -> Either(String, _)
const zoltar = compose(map(console.log), map(fortune), getAge(moment()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册