Skip to content

Commit c4c8b9d

Browse files
committed
Appendix c: Fixed type signature for flip function
Closes issue #472.
1 parent 860eb4d commit c4c8b9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appendix_c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const filter = curry((fn, xs) => xs.filter(fn));
4848
## flip
4949

5050
```js
51-
// flip :: (a -> b) -> (b -> a)
51+
// flip :: (a -> b -> c) -> b -> a -> c
5252
const flip = curry((fn, a, b) => fn(b, a));
5353
```
5454

0 commit comments

Comments
 (0)