-
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add occursin and find* methods replacing search and findin
Add OccursIn predicate which replaces findin and all specific findfirst/findnext/findlast/findprev methods for specific types. These all call search or findin, but return nothing instead of 0 where appropriate. Note that there is an inconsistency with generic find* methods which already existed in Julia 0.6 and which continue to return 0: separate Compat.find* methods will have to be introduced for them to avoid conflicts with Base. Also fix in(::CartesianIndex, ::CartesianIndices) bug uncovered by importing in.
- Loading branch information
Showing
3 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters