Skip to content

Commit

Permalink
Add a NEWS entry for find* and indexin sentinel change (JuliaLang#26067)
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan authored and mbauman committed Feb 15, 2018
1 parent a25a147 commit fd06d20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]).
Expand Down

0 comments on commit fd06d20

Please sign in to comment.