@@ -451,6 +451,11 @@ Library improvements
451
451
`map(uppercase ∘ hex, 250:255)` is now equivalent to
452
452
`map(x -> uppercase(hex(x)), 250:255)` ([#17155]).
453
453
454
+ * `enumerate` now supports the two-argument form `enumerate(::IndexStyle, iterable)`.
455
+ This form allows specification of the returned indices' style. For example,
456
+ `enumerate(IndexLinear, iterable)` yields linear indices and
457
+ `enumerate(IndexCartesian, iterable)` yields cartesian indices ([#16378]).
458
+
454
459
Compiler/Runtime improvements
455
460
-----------------------------
456
461
@@ -548,6 +553,11 @@ Deprecated or removed
548
553
For example, `isnumber("123")` should now be expressed `all(isnumber, "123")`
549
554
([#20342]).
550
555
556
+ * A few names related to indexing traits have been changed: `LinearIndexing` and
557
+ `linearindexing` have been deprecated in favor of `IndexStyle`. `LinearFast` has
558
+ been deprecated in favor of `IndexLinear`, and `LinearSlow` has been deprecated in
559
+ favor of `IndexCartesian` ([#16378]).
560
+
551
561
* The two-argument forms of `map` (`map!(f, A)`) and `asyncmap!` (`asyncmap!(f, A)`)
552
562
have been deprecated in anticipation of future semantic changes ([#19721]).
553
563
@@ -637,6 +647,7 @@ Command-line option changes
637
647
[#12563]: https://github.com/JuliaLang/julia/issues/12563
638
648
[#15850]: https://github.com/JuliaLang/julia/issues/15850
639
649
[#16213]: https://github.com/JuliaLang/julia/issues/16213
650
+ [#16378]: https://github.com/JuliaLang/julia/issues/16378
640
651
[#16937]: https://github.com/JuliaLang/julia/issues/16937
641
652
[#16961]: https://github.com/JuliaLang/julia/issues/16961
642
653
[#16984]: https://github.com/JuliaLang/julia/issues/16984
0 commit comments