You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or 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
QilongTang
changed the title
Get item from list with negative index (Wishlist #187)
DYN-6985 Get item from list with negative index (Wishlist #187)
May 24, 2024
I think this would be an okay change but it requires the following changes IMO.
a test
consider performance impact, 1 if statement probably is not too bad.
I don't see any reason to raise the IndexOutOfRangeException, the indexing operation is going to do that anyway, what am I missing?
Hi @mjkkirschner I think when index is too large or too negative to handle, it could be out of range so exception is only needed in that case. I am adding unit tests for those cases as well.
Hi @mjkkirschner I think when index is too large or too negative to handle, it could be out of range so exception is only needed in that case. I am adding unit tests for those cases as well.
yeah I'm still not getting it - when you do
var x= int[1]
var y = x[10000000]
that will throw an out of range exception, you don't have to detect it yourself first...
denizmaral
added a commit
to denizmaral/Dynamo
that referenced
this pull request
May 30, 2024
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Update to List.GetItemAtIndex to allow negative index (get from right to left) retrieval
DynamoDS/DynamoWishlist#187
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Update to List.GetItemAtIndex to allow negative index (get from right to left) retrieval
Reviewers
@DynamoDS/dynamo
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of