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
@@ -412,7 +412,7 @@ Currying is similar to and often confused with partial application. But instead
412
412
413
413
Currying can be seen as partially applying one parameter after the other.
414
414
415
-
## curry
415
+
## curry()
416
416
417
417
If we revisit the example used for partial application, the curried version would be :
418
418
@@ -470,7 +470,7 @@ $curriedAdd = curry('add');
470
470
$curriedAdd(10)(5)(27)(10); // -> 52
471
471
```
472
472
473
-
## curry_n
473
+
## curry_n()
474
474
475
475
`curry` uses reflection to determine the number of arguments, which can be slow depdening on your requirements. Also, you might want to curry only the first parameters, or your function expects a variable number of parameters. In all cases, you can use `curry_n` instead.
0 commit comments