LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
X.

Indexing array from the end

Status: Duplicate

For whatever reason, the end of an array is just as natural a location as its beginning. Go figure...

Hence it would be nice to have an index array function that could be started from the end (for instance with an "invert" indexing option accessible with a right-click).

At this point, one has to either flip over the array (time and memory costly) or clutter the diagram with a "Array Size" + "Minus One" (and more if one wants to access previous elements).

My 2 cts,

X.

4 Comments
JackDunaway
Trusted Enthusiast

 


@xavier wrote:

At this point, one has to either flip over the array (time and memory costly)


Your intuition is wrong here, check out what AQ says. And, this is a duplicate, and here's a similar idea.

X.
Trusted Enthusiast
Trusted Enthusiast

Cool. I looked for it before I posted though 😞

JackDunaway
Trusted Enthusiast

No worries, can't come down hard on duplicates since it's been repeated ad infinitum that all of the search providers for the NI website (yes, there are multiple) are busted.

Laura F.
Active Participant
Status changed to: Duplicate