Commit 2040e42
fix(stdlib): builtins.map multi-iterable overloads use System.Func
The 2- and 3-iterable overloads typed the function as `'T1 * 'T2 -> 'T3`
(tuple-input), which Fable compiles to a Python function expecting a
single tuple arg. But Python's `map(f, it1, it2)` calls `f(a, b)`
positionally, so calls failed with "takes 1 positional argument but 2
were given". Switching to `System.Func<...>` produces a Python function
with the correct positional arity. Restores the two-iterable test and
adds a three-iterable test.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 214a046 commit 2040e42
2 files changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
165 | 177 | | |
166 | 178 | | |
167 | 179 | | |
| |||
0 commit comments