Skip to content

Commit 4ecdf95

Browse files
Sacha0tkelman
authored andcommitted
Add NEWS.md entry for function composition and negation via operators (#17155). (#21808)
1 parent 194b246 commit 4ecdf95

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
@@ -387,6 +387,12 @@ Library improvements
387387
now efficiently yield `SparseVector`s or `SparseMatrix`s as appropriate ([#19239],
388388
[#19371], [#19518], [#19438], [#19690], [#19724], [#19926], [#19934], [#20009]).
389389
390+
* The operators `!` and `∘` (`\circ<tab>` at the REPL and in most code editors) now
391+
respectively perform predicate function negation and function composition. For example,
392+
`map(!iszero, (0, 1))` is now equivalent to `map(x -> !iszero(x), (0, 1))` and
393+
`map(uppercase ∘ hex, 250:255)` is now equivalent to
394+
`map(x -> uppercase(hex(x)), 250:255)` ([#17155]).
395+
390396
Compiler/Runtime improvements
391397
-----------------------------
392398
@@ -464,6 +470,7 @@ Deprecated or removed
464470
[#16984]: https://github.com/JuliaLang/julia/issues/16984
465471
[#16986]: https://github.com/JuliaLang/julia/issues/16986
466472
[#17057]: https://github.com/JuliaLang/julia/issues/17057
473+
[#17155]: https://github.com/JuliaLang/julia/issues/17155
467474
[#17261]: https://github.com/JuliaLang/julia/issues/17261
468475
[#17265]: https://github.com/JuliaLang/julia/issues/17265
469476
[#17302]: https://github.com/JuliaLang/julia/issues/17302

0 commit comments

Comments
 (0)