Skip to content

Commit 7fd8230

Browse files
committed
Add a NEWS entry for find* and indexin sentinel change
[ci skip]
1 parent 35653ef commit 7fd8230

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

NEWS.md

+4
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,10 @@ This section lists changes that do not have deprecation warnings.
397397
and higher-dimensional arrays insted of linear indices as was previously the case.
398398
Use `LinearIndices(a)[findall(f, a)]` and similar constructs to compute linear indices.
399399

400+
* The `find*` functions which return scalars, i.e. `findnext`, `findprev`, `findfirst`,
401+
and `findlast`, as well as `indexin`, now return `nothing` when no match is found rather
402+
than 0 ([#25472], [#25662]).
403+
400404
* The `Base.HasShape` iterator trait has gained a type parameter `N` indicating the
401405
number of dimensions, which must correspond to the length of the tuple returned by
402406
`size` ([#25655]).

0 commit comments

Comments
 (0)