Skip to content

Commit 2080870

Browse files
Sacha0tkelman
authored andcommitted
Add NEWS.md entry for function composition and negation via operators (#17155). (#21808)
(cherry picked from commit 4ecdf95)
1 parent bf4cf71 commit 2080870

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

NEWS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,12 @@ Library improvements
350350
now efficiently yield `SparseVector`s or `SparseMatrix`s as appropriate ([#19239],
351351
[#19371], [#19518], [#19438], [#19690], [#19724], [#19926], [#19934], [#20009]).
352352
353+
* The operators `!` and `∘` (`\circ<tab>` at the REPL and in most code editors) now
354+
respectively perform predicate function negation and function composition. For example,
355+
`map(!iszero, (0, 1))` is now equivalent to `map(x -> !iszero(x), (0, 1))` and
356+
`map(uppercase ∘ hex, 250:255)` is now equivalent to
357+
`map(x -> uppercase(hex(x)), 250:255)` ([#17155]).
358+
353359
Compiler/Runtime improvements
354360
-----------------------------
355361
@@ -439,6 +445,7 @@ Deprecated or removed
439445
[#16984]: https://github.com/JuliaLang/julia/issues/16984
440446
[#16986]: https://github.com/JuliaLang/julia/issues/16986
441447
[#17057]: https://github.com/JuliaLang/julia/issues/17057
448+
[#17155]: https://github.com/JuliaLang/julia/issues/17155
442449
[#17261]: https://github.com/JuliaLang/julia/issues/17261
443450
[#17265]: https://github.com/JuliaLang/julia/issues/17265
444451
[#17302]: https://github.com/JuliaLang/julia/issues/17302

0 commit comments

Comments
 (0)