From fd06d20f81a3b122981bea834474ca2679a73813 Mon Sep 17 00:00:00 2001 From: Alex Arslan Date: Thu, 15 Feb 2018 11:55:20 -0800 Subject: [PATCH] Add a NEWS entry for find* and indexin sentinel change (#26067) --- NEWS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NEWS.md b/NEWS.md index d55352225dde4..a5668fc978372 100644 --- a/NEWS.md +++ b/NEWS.md @@ -397,6 +397,10 @@ This section lists changes that do not have deprecation warnings. and higher-dimensional arrays insted of linear indices as was previously the case. Use `LinearIndices(a)[findall(f, a)]` and similar constructs to compute linear indices. + * The `find*` functions which return scalars, i.e. `findnext`, `findprev`, `findfirst`, + and `findlast`, as well as `indexin`, now return `nothing` when no match is found rather + than 0 ([#25472], [#25662]). + * The `Base.HasShape` iterator trait has gained a type parameter `N` indicating the number of dimensions, which must correspond to the length of the tuple returned by `size` ([#25655]).