Skip to content

Commit f01a772

Browse files
committed
Add NEWS.md entry for function composition and negation via operators (JuliaLang#17155).
1 parent 1129de3 commit f01a772

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
@@ -424,6 +430,7 @@ Deprecated or removed
424430
[#16984]: https://github.com/JuliaLang/julia/issues/16984
425431
[#16986]: https://github.com/JuliaLang/julia/issues/16986
426432
[#17057]: https://github.com/JuliaLang/julia/issues/17057
433+
[#17155]: https://github.com/JuliaLang/julia/issues/17155
427434
[#17261]: https://github.com/JuliaLang/julia/issues/17261
428435
[#17265]: https://github.com/JuliaLang/julia/issues/17265
429436
[#17302]: https://github.com/JuliaLang/julia/issues/17302

0 commit comments

Comments
 (0)