-
```ts
type Cut = U extends [infer UH, ...infer UR]
? T extends [infer TH, ...infer TR]
? Cut
: never
: T extends [infer TH, ...infer TR]
? Cut
: Acc
type Curry = T extend…
-
[TS Playground](https://www.typescriptlang.org/play?#code/PQKgUABBAsBsBMEC0EDCBXATpgngSwDsBzCeSZJSq8gIxwgGk8BbCACgAEALdGgN3QBTAJQQAxIIAeAF0yDmgiOXJjVEAIpCAztLwB7AsqgBtDNnzEAumy7TpABy0AuYMEEEAdAHc8Aazz…
uid11 updated
3 years ago
-
```ts
type Curry = P extends [infer K, ...infer O] ? (a: K) => Curry : R;
declare function Currying(fn: (...args: P) => R): Curry;
```
52cik updated
4 years ago
-
``` scala
def withClose(closeAble: { def close(): Unit })
(op: { def close(): Unit } => Unit) {
try {
op(closeAble)
} finally {
closeAble.close()
}
}
class Connection …
-
```
At least since revision 658 [1], unification does not complete in the currying
example, as shown by examples/handbook/progs/script2 [2] (I've reproduced the
same problem with release 2.0-b2 and …
-
A proper explanation is lacking, but...
Some sketches in Haskell of what I'm hoping to create:
Two "BiFunction"s combined
```haskell
-- Single BiFunction
fused a b = f a b
fused = f
-- Tw…
-
### Is this a unique topic?
- [x] I have checked "open" AND "closed" issues and this is not a duplicate
### Is your topic request related to a problem/unavailable functionality? Please describe.
I …
-
The types associated to our typed lambda expressions often need to be curried, uncurried, interchanged, etc.
The way that these type-juggling operations are currently implemented can be a bit hacky…
-
## 🐛 Bug Report
When using currying, `produce` doesn't return the original type
## Link to repro
https://codesandbox.io/s/immer-sandbox-forked-342jd?file=/src/index.ts
## To Reproduce
U…
-
https://github.com/d-ivashchuk/memory-helper/blob/0ea43d5c6eb9e4175ceabf94ad60727c184a231f/src/Entry/entryWeather.jsx#L60