11-19-2014 09:40 PM
I want to find multiple values from an array (the index of Index Array is an array). But it seems the index can only be integer. How to solve this? Thanks!
11-19-2014 09:47 PM
Please see attached snippet, it is one of the way to do it.
11-19-2014 10:07 PM
When you get a programming challenge, don't start by trying to find a way to break the tool you have. That's what happens when you try to feed it something it doesn't understand.
Instead, think of how you can use that tool to help you. The snippet is probably the easiest way to handle what you're asking unless the elements you want from the array are all consecutive. If you can't make that assumption though, all you needed to do was find a way to call the index function multiple times.
11-20-2014 05:34 AM
Yes, a list of N items can only be indexed by an integer number, as you'll point outside the list otherwise. That's kind of the definition. What you might be after is the interpolate 1D array, if you want to guess what a number in between to list items would be.
/Y