@@ -396,6 +396,11 @@ Library improvements
396396 `map(uppercase ∘ hex, 250:255)` is now equivalent to
397397 `map(x -> uppercase(hex(x)), 250:255)` ([#17155]).
398398
399+ * `enumerate` now supports the two-argument form `enumerate(::IndexStyle, iterable)`.
400+ This form allows specification of the returned indices' style. For example,
401+ `enumerate(IndexLinear, iterable)` yields linear indices and
402+ `enumerate(IndexCartesian, iterable)` yields cartesian indices ([#16378]).
403+
399404Compiler/Runtime improvements
400405-----------------------------
401406
@@ -493,6 +498,11 @@ Deprecated or removed
493498 For example, `isnumber("123")` should now be expressed `all(isnumber, "123")`
494499 ([#20342]).
495500
501+ * A few names related to indexing traits have been changed: `LinearIndexing` and
502+ `linearindexing` have been deprecated in favor of `IndexStyle`. `LinearFast` has
503+ been deprecated in favor of `IndexLinear`, and `LinearSlow` has been deprecated in
504+ favor of `IndexCartesian` ([#16378]).
505+
496506 * The two-argument forms of `map` (`map!(f, A)`) and `asyncmap!` (`asyncmap!(f, A)`)
497507 have been deprecated in anticipation of future semantic changes ([#19721]).
498508
@@ -575,6 +585,7 @@ Command-line option changes
575585[#12563]: https://github.com/JuliaLang/julia/issues/12563
576586[#15850]: https://github.com/JuliaLang/julia/issues/15850
577587[#16213]: https://github.com/JuliaLang/julia/issues/16213
588+ [#16378]: https://github.com/JuliaLang/julia/issues/16378
578589[#16961]: https://github.com/JuliaLang/julia/issues/16961
579590[#16984]: https://github.com/JuliaLang/julia/issues/16984
580591[#16986]: https://github.com/JuliaLang/julia/issues/16986
0 commit comments