Commit f3a3fcc
refactor: address review feedback
- Use find_map(|p| p.first()) instead of flatten().next() to make the
"first batch in any partition" intent clearer (per @kosiew).
- Extend regression test to also assert the empty outer partition list
case ([]) raises the same ValueError.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 255d968 commit f3a3fcc
2 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
840 | | - | |
841 | | - | |
| 840 | + | |
842 | 841 | | |
843 | 842 | | |
844 | 843 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
125 | 129 | | |
126 | 130 | | |
127 | 131 | | |
| |||
0 commit comments