From 208087048190287bec6adec6b9855296f646b234 Mon Sep 17 00:00:00 2001 From: Sacha Verweij Date: Fri, 12 May 2017 15:59:40 -0700 Subject: [PATCH] Add NEWS.md entry for function composition and negation via operators (#17155). (#21808) (cherry picked from commit 4ecdf950802cc19a28948c8c4878f66cc1fb7de8) --- NEWS.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/NEWS.md b/NEWS.md index 35771604416d3..9a3dbaf2b7efe 100644 --- a/NEWS.md +++ b/NEWS.md @@ -350,6 +350,12 @@ Library improvements now efficiently yield `SparseVector`s or `SparseMatrix`s as appropriate ([#19239], [#19371], [#19518], [#19438], [#19690], [#19724], [#19926], [#19934], [#20009]). + * The operators `!` and `∘` (`\circ` at the REPL and in most code editors) now + respectively perform predicate function negation and function composition. For example, + `map(!iszero, (0, 1))` is now equivalent to `map(x -> !iszero(x), (0, 1))` and + `map(uppercase ∘ hex, 250:255)` is now equivalent to + `map(x -> uppercase(hex(x)), 250:255)` ([#17155]). + Compiler/Runtime improvements ----------------------------- @@ -439,6 +445,7 @@ Deprecated or removed [#16984]: https://github.com/JuliaLang/julia/issues/16984 [#16986]: https://github.com/JuliaLang/julia/issues/16986 [#17057]: https://github.com/JuliaLang/julia/issues/17057 +[#17155]: https://github.com/JuliaLang/julia/issues/17155 [#17261]: https://github.com/JuliaLang/julia/issues/17261 [#17265]: https://github.com/JuliaLang/julia/issues/17265 [#17302]: https://github.com/JuliaLang/julia/issues/17302