You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -308,9 +308,9 @@ Curry is a delicious Indian dish. More importantly, in the context of ReScript (
308
308
See the `addFive` intermediate function? `add` takes in 3 arguments but received only 1. It's interpreted as "currying" the argument `5` and waiting for the next 2 arguments to be applied later on. Type signatures:
309
309
310
310
```resi
311
-
let add: (int, int, int) => int;
312
-
let addFive: (int, int) => int;
313
-
let twelve: int;
311
+
let add: (int, int, int) => int
312
+
let addFive: (int, int) => int
313
+
let twelve: int
314
314
```
315
315
316
316
(In a dynamic language such as JS, currying would be dangerous, since accidentally forgetting to pass an argument doesn't error at compile time).
0 commit comments