Fix example result value from 462・Currying 2 (#15748)

This commit is contained in:
William Grasel 2022-09-18 23:38:44 -03:00 committed by GitHub
parent 4834688887
commit ee7335cd07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ const three = add(1, 1, 1)
const curriedAdd = DynamicParamsCurrying(add)
const six = curriedAdd(1, 2, 3)
const seven = curriedAdd(1, 2)(4)
const eight = curriedAdd(2)(3)(4)
const nine = curriedAdd(2)(3)(4)
```
In this challenge, `DynamicParamsCurrying` may take a function with zero to multiple arguments, you need to correctly type it. The returned function may accept at least one argument. When all the arguments as satisfied, it should yield the return type of the original function correctly.