Skip to content

Commit 18d7af8

Browse files
Sacha0tkelman
authored andcommitted
Add NEWS.md entry for enumerate(::IndexStyle, itr) addition and indexing traits rename (#16378). (#21997)
1 parent 9ba1b49 commit 18d7af8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

NEWS.md

+11
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,11 @@ Library improvements
451451
`map(uppercase ∘ hex, 250:255)` is now equivalent to
452452
`map(x -> uppercase(hex(x)), 250:255)` ([#17155]).
453453
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+
454459
Compiler/Runtime improvements
455460
-----------------------------
456461
@@ -548,6 +553,11 @@ Deprecated or removed
548553
For example, `isnumber("123")` should now be expressed `all(isnumber, "123")`
549554
([#20342]).
550555
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+
551561
* The two-argument forms of `map` (`map!(f, A)`) and `asyncmap!` (`asyncmap!(f, A)`)
552562
have been deprecated in anticipation of future semantic changes ([#19721]).
553563
@@ -637,6 +647,7 @@ Command-line option changes
637647
[#12563]: https://github.com/JuliaLang/julia/issues/12563
638648
[#15850]: https://github.com/JuliaLang/julia/issues/15850
639649
[#16213]: https://github.com/JuliaLang/julia/issues/16213
650+
[#16378]: https://github.com/JuliaLang/julia/issues/16378
640651
[#16937]: https://github.com/JuliaLang/julia/issues/16937
641652
[#16961]: https://github.com/JuliaLang/julia/issues/16961
642653
[#16984]: https://github.com/JuliaLang/julia/issues/16984

0 commit comments

Comments
 (0)