-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a method `isassigned(v::Tuple, i::Integer)` which makes that function work on `Tuple`s, the same way it does on `Vector`s. (Since a `Tuple` cannot be created without being assigned, all that is left is to check that the index is within bounds.) This makes it easier to write generic code that works on both `Vector`s and `Tuple`s.
- Loading branch information
1 parent
b4d8795
commit b311411
Showing
2 changed files
with
13 additions
and
0 deletions.
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