-
```ts
declare function DynamicParamsCurrying(fn: (...args: T) => R):
T extends [] ? R : // returns R if no params is needed
(...args: P) =>
T extends [...P, ...infer K3] ? // ch…
-
Test cases derived from https://github.com/scala/bug/issues/11289:
```
class Test {
def akkaResponseTimeLoggingFunction(a: String)(x: Int)(y: Boolean): Unit = ???
// should compile without…
-
# Bug report
Hi, I'm trying to curry a class constructor, but mypy complains
## What's wrong
```py
# main.py
from returns.curry import curry
@curry
class Person:
def __init…
-
# Bug report
I tried out returns, because I was looking for typesafe curry implementation, but I hit a problem with my Generic / Protocol implementing attrs classes.
## What's wrong
```python
…
-
This solution is longer but slightly better than the canonical one (#1404) in that it takes care to preserve the names of the function parameters. Extracting the first element of a tuple while preserv…
danvk updated
8 months ago
-
Like the title says, the examples in the documentation are examples of partial application. Currying is when a function with 4 arguments is turned in to a function with 1 argument that produces a func…
-
## Compiler version
3.3.2-RC1-bin-20230615-916d4e7-NIGHTLY and before
## Minimized code
```scala
class Sel1 extends Selectable {
def applyDynamic(name: String)(args: Int*): Int = args.sum…
-
Currently, any one-argument function can be used as an injection target, and any one-argument function that returns a boolean can be used as a property. It would be nice to be able to curry multi-arg…
-
Jameshfisher of reddit made a good point:
http://www.reddit.com/r/javascript/comments/pholi/typedjs_sanity_check_your_code/c3pscxo
-
### Description
According to [docs](https://visgl.github.io/react-map-gl/docs/api-reference/map#onrotatestart),
> When Map is used as a controlled component, event.viewState.bearing reflects the…