Commit d908c3e
authored
correct set.union method (#574)
* correct set.union method
The `union` function on `set` is inconsistent with the behaviour of
`update` as it does not support multiple iterable positional arguments
as is the case in the Bazel specification of the language. This PR
will align `starlark-go` with the Bazel spec.
Note that the `set.union` method no longer uses the `Union` function
defined in `value.go` in order to avoid making a new `set` instance
for each interable processed.
* correct set.union method
Fixes in PR from @adonovan.
* correct set.union method
function name change1 parent 2fb1215 commit d908c3e
3 files changed
+41
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3762 | 3762 | | |
3763 | 3763 | | |
3764 | 3764 | | |
3765 | | - | |
3766 | | - | |
3767 | | - | |
| 3765 | + | |
| 3766 | + | |
3768 | 3767 | | |
3769 | | - | |
| 3768 | + | |
| 3769 | + | |
3770 | 3770 | | |
3771 | 3771 | | |
3772 | 3772 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2337 | 2337 | | |
2338 | 2338 | | |
2339 | 2339 | | |
2340 | | - | |
2341 | | - | |
2342 | | - | |
2343 | | - | |
2344 | | - | |
2345 | | - | |
2346 | | - | |
2347 | | - | |
| 2340 | + | |
| 2341 | + | |
2348 | 2342 | | |
2349 | 2343 | | |
2350 | | - | |
| 2344 | + | |
2351 | 2345 | | |
2352 | 2346 | | |
2353 | 2347 | | |
2354 | 2348 | | |
2355 | | - | |
2356 | | - | |
2357 | | - | |
2358 | | - | |
2359 | | - | |
2360 | | - | |
2361 | | - | |
2362 | | - | |
2363 | | - | |
2364 | | - | |
2365 | | - | |
2366 | | - | |
2367 | | - | |
2368 | | - | |
2369 | | - | |
2370 | | - | |
2371 | | - | |
2372 | | - | |
| 2349 | + | |
| 2350 | + | |
2373 | 2351 | | |
2374 | | - | |
2375 | 2352 | | |
2376 | 2353 | | |
2377 | 2354 | | |
| |||
2474 | 2451 | | |
2475 | 2452 | | |
2476 | 2453 | | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
2477 | 2476 | | |
2478 | 2477 | | |
2479 | 2478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
70 | 79 | | |
71 | 80 | | |
72 | 81 | | |
| |||
130 | 139 | | |
131 | 140 | | |
132 | 141 | | |
133 | | - | |
| 142 | + | |
134 | 143 | | |
135 | 144 | | |
136 | 145 | | |
| |||
0 commit comments