Skip to content

Commit 6b7f68b

Browse files
Sacha0tkelman
authored andcommitted
Add NEWS.md entry for enumerate(::IndexStyle, itr) addition and indexing traits rename (#16378). (#21997)
(cherry picked from commit 18d7af8)
1 parent 9129a3c commit 6b7f68b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

NEWS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
399404
Compiler/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

Comments
 (0)