Commit bdd53ee
committed
Introduce new overloads of flatMap and flatMapTo
- Sequence<T>.flatMap((T) -> Iterable<R>)
- Iterable<T>.flatMap((T) -> Sequence<R>)
- Array<T>.flatMap((T) -> Sequence<R>)
- Map.flatMap((Entry) -> Sequence<R>)
KT-345061 parent 562788c commit bdd53eeCopy full SHA for bdd53ee
10 files changed
+233-9Lines changed: 233 additions & 9 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- libraries
- stdlib
- common/src/generated
- test/collections
- tools
- binary-compatibility-validator/reference-public-api
- kotlin-stdlib-gen/src/templates
Expand file treeCollapse file tree
Open diff view settings
Collapse file
libraries/stdlib/common/src/generated/_Arrays.kt
Copy file name to clipboardExpand all lines: libraries/stdlib/common/src/generated/_Arrays.kt+28Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10032 | 10032 | |
10033 | 10033 | |
10034 | 10034 | |
| 10035 | + |
| 10036 | + |
| 10037 | + |
| 10038 | + |
| 10039 | + |
| 10040 | + |
| 10041 | + |
| 10042 | + |
| 10043 | + |
| 10044 | + |
| 10045 | + |
| 10046 | + |
| 10047 | + |
10035 | 10048 | |
10036 | 10049 | |
10037 | 10050 | |
| ||
10131 | 10144 | |
10132 | 10145 | |
10133 | 10146 | |
| 10147 | + |
| 10148 | + |
| 10149 | + |
| 10150 | + |
| 10151 | + |
| 10152 | + |
| 10153 | + |
| 10154 | + |
| 10155 | + |
| 10156 | + |
| 10157 | + |
| 10158 | + |
| 10159 | + |
| 10160 | + |
| 10161 | + |
10134 | 10162 | |
10135 | 10163 | |
10136 | 10164 | |
|
Collapse file
libraries/stdlib/common/src/generated/_Collections.kt
Copy file name to clipboardExpand all lines: libraries/stdlib/common/src/generated/_Collections.kt+28Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1286 | 1286 | |
1287 | 1287 | |
1288 | 1288 | |
| 1289 | + |
| 1290 | + |
| 1291 | + |
| 1292 | + |
| 1293 | + |
| 1294 | + |
| 1295 | + |
| 1296 | + |
| 1297 | + |
| 1298 | + |
| 1299 | + |
| 1300 | + |
| 1301 | + |
1289 | 1302 | |
1290 | 1303 | |
1291 | 1304 | |
| ||
1297 | 1310 | |
1298 | 1311 | |
1299 | 1312 | |
| 1313 | + |
| 1314 | + |
| 1315 | + |
| 1316 | + |
| 1317 | + |
| 1318 | + |
| 1319 | + |
| 1320 | + |
| 1321 | + |
| 1322 | + |
| 1323 | + |
| 1324 | + |
| 1325 | + |
| 1326 | + |
| 1327 | + |
1300 | 1328 | |
1301 | 1329 | |
1302 | 1330 | |
|
Collapse file
libraries/stdlib/common/src/generated/_Maps.kt
Copy file name to clipboardExpand all lines: libraries/stdlib/common/src/generated/_Maps.kt+28Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
46 | 46 | |
47 | 47 | |
48 | 48 | |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
49 | 62 | |
50 | 63 | |
51 | 64 | |
| ||
57 | 70 | |
58 | 71 | |
59 | 72 | |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
60 | 88 | |
61 | 89 | |
62 | 90 | |
|
Collapse file
libraries/stdlib/common/src/generated/_Sequences.kt
Copy file name to clipboardExpand all lines: libraries/stdlib/common/src/generated/_Sequences.kt+32Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
765 | 765 | |
766 | 766 | |
767 | 767 | |
| 768 | + |
| 769 | + |
| 770 | + |
| 771 | + |
| 772 | + |
| 773 | + |
| 774 | + |
| 775 | + |
| 776 | + |
| 777 | + |
| 778 | + |
| 779 | + |
| 780 | + |
| 781 | + |
| 782 | + |
768 | 783 | |
769 | 784 | |
770 | 785 | |
| ||
776 | 791 | |
777 | 792 | |
778 | 793 | |
| 794 | + |
| 795 | + |
| 796 | + |
| 797 | + |
| 798 | + |
| 799 | + |
| 800 | + |
| 801 | + |
| 802 | + |
| 803 | + |
| 804 | + |
| 805 | + |
| 806 | + |
| 807 | + |
| 808 | + |
| 809 | + |
| 810 | + |
779 | 811 | |
780 | 812 | |
781 | 813 | |
|
Collapse file
libraries/stdlib/test/collections/ArraysTest.kt
Copy file name to clipboardExpand all lines: libraries/stdlib/test/collections/ArraysTest.kt+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
| 15 | + |
15 | 16 | |
16 | 17 | |
17 | 18 | |
| ||
1756 | 1757 | |
1757 | 1758 | |
1758 | 1759 | |
| 1760 | + |
| 1761 | + |
| 1762 | + |
| 1763 | + |
| 1764 | + |
| 1765 | + |
| 1766 | + |
| 1767 | + |
| 1768 | + |
1759 | 1769 | |
1760 | 1770 | |
1761 | 1771 | |
|
Collapse file
libraries/stdlib/test/collections/CollectionTest.kt
Copy file name to clipboardExpand all lines: libraries/stdlib/test/collections/CollectionTest.kt+11Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
46 | 46 | |
47 | 47 | |
48 | 48 | |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
49 | 60 | |
50 | 61 | |
51 | 62 | |
|
Collapse file
libraries/stdlib/test/collections/MapTest.kt
Copy file name to clipboardExpand all lines: libraries/stdlib/test/collections/MapTest.kt+16-1Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
| 2 | + |
3 | 3 | |
4 | 4 | |
5 | 5 | |
| ||
216 | 216 | |
217 | 217 | |
218 | 218 | |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
219 | 234 | |
220 | 235 | |
221 | 236 | |
|
Collapse file
libraries/stdlib/test/collections/SequenceTest.kt
Copy file name to clipboardExpand all lines: libraries/stdlib/test/collections/SequenceTest.kt+12-6Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
572 | 572 | |
573 | 573 | |
574 | 574 | |
575 | | - |
576 | | - |
| 575 | + |
| 576 | + |
| 577 | + |
| 578 | + |
| 579 | + |
577 | 580 | |
578 | 581 | |
579 | 582 | |
580 | | - |
581 | | - |
| 583 | + |
| 584 | + |
582 | 585 | |
583 | 586 | |
584 | 587 | |
585 | | - |
586 | | - |
| 588 | + |
| 589 | + |
| 590 | + |
| 591 | + |
| 592 | + |
587 | 593 | |
588 | 594 | |
589 | 595 | |
|
Collapse file
libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt
Copy file name to clipboardExpand all lines: libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1087 | 1087 | |
1088 | 1088 | |
1089 | 1089 | |
| 1090 | + |
| 1091 | + |
1090 | 1092 | |
1091 | 1093 | |
1092 | 1094 | |
| ||
2136 | 2138 | |
2137 | 2139 | |
2138 | 2140 | |
| 2141 | + |
| 2142 | + |
2139 | 2143 | |
2140 | 2144 | |
2141 | 2145 | |
| ||
2401 | 2405 | |
2402 | 2406 | |
2403 | 2407 | |
| 2408 | + |
| 2409 | + |
2404 | 2410 | |
2405 | 2411 | |
2406 | 2412 | |
| ||
4780 | 4786 | |
4781 | 4787 | |
4782 | 4788 | |
| 4789 | + |
| 4790 | + |
4783 | 4791 | |
4784 | 4792 | |
4785 | 4793 | |
|
Collapse file
libraries/tools/kotlin-stdlib-gen/src/templates/Mapping.kt
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-stdlib-gen/src/templates/Mapping.kt+60-2Lines changed: 60 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
304 | 304 | |
305 | 305 | |
306 | 306 | |
307 | | - |
| 307 | + |
| 308 | + |
| 309 | + |
| 310 | + |
| 311 | + |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | + |
| 316 | + |
| 317 | + |
| 318 | + |
| 319 | + |
| 320 | + |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
308 | 338 | |
309 | 339 | |
310 | 340 | |
| ||
322 | 352 | |
323 | 353 | |
324 | 354 | |
325 | | - |
| 355 | + |
| 356 | + |
| 357 | + |
| 358 | + |
| 359 | + |
| 360 | + |
| 361 | + |
| 362 | + |
| 363 | + |
| 364 | + |
| 365 | + |
| 366 | + |
| 367 | + |
| 368 | + |
| 369 | + |
| 370 | + |
| 371 | + |
| 372 | + |
| 373 | + |
| 374 | + |
| 375 | + |
| 376 | + |
| 377 | + |
| 378 | + |
| 379 | + |
| 380 | + |
| 381 | + |
| 382 | + |
| 383 | + |
326 | 384 | |
327 | 385 | |
328 | 386 | |
|
0 commit comments