-
```ts
// your answers
type Flatten = S extends [infer X, ...infer Y] ?
X extends any[] ?
Flatten : Flatten
: T
```
-
```ts
type Flatten = T extends [infer F, ...infer R] ? F extends unknown[] ? [...Flatten, ...Flatten] : [F, ...Flatten] : []
```
-
### Description
*This is more of a question than a feature request, but could turn into one.*
One of my uses when it comes to deserialising something similar to:
```json
{
"version": 1,
…
-
In Nvim 0.10, `vim.tbl_flatten` was deprecated in favor of `vim.iter(...):flatten().totable()` (see `:checkhealth vim.deprecated` warning after using the plugin). You can either add a backward compati…
-
Please check ScalableTestGrids_NB_SymbolicJacobian_ScalableTestGrids.Models.Type1.Type1_N_1_M_1 with the new backend and -d=mergeComponents, see [report](https://libraries.openmodelica.org/branches/he…
-
During the "Julia performance tuning crash course" I did this week's OSCAR workshop, we looked at some of the "big" test suites in our tests, those which use 60GB of RAM and more, and found various so…
-
---
**From the maintainer Li Haoyi**: I'm putting a 500USD bounty on this issue, payable by bank transfer on a merged PR implementing this.
---
Sometimes when processing JSON you want to use …
-
When dealing with unaligned or highly-compressed binary inputs, it's usually convenient to request data byte-by-byte. Of course, doing this directly on IO level is quite limiting, so an intermediate c…
-
When using this crate, a setup such as this one generates an incorrect plist.
```rust
#[derive(Serialize)]
struct Annoying {
#[serde(flatten)]
second: Second,
}
#[…
-
TLDR; as of Keras 3.5 training a functional model with multiple outputs, when passing loss and y_true as dicts, is broken. Seems like tree.flatten is re-ordering entries in the y_true dict.
Keras v…