Commit 600b998
Degrade
`array_chunk` with a constant length precisely enumerates the chunks
for sealed CATs: each chunk is a known slice of the source. With
real unsealed extras the source has an unknown number of trailing
entries that could form additional partial or full chunks — the
precise enumeration would lie about the chunk count.
Fall back to `traitChunkArray`, which yields the general
`non-empty-list<array{...source-shape...}>` form. Less precise but
correct.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>chunkArray on unsealed sources to the general trait path1 parent 625e1e2 commit 600b998
2 files changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1436 | 1436 | | |
1437 | 1437 | | |
1438 | 1438 | | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
1439 | 1448 | | |
1440 | 1449 | | |
1441 | 1450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
479 | 499 | | |
480 | 500 | | |
481 | 501 | | |
| |||
0 commit comments