3 Replies Latest reply on Apr 4, 2009 12:58 PM by 843789

    Extracting only part of an array

      let's say I have an array which size is n. I want to pass part of it (array[x]...array[y]) as a stand alone array to a function. Do I have to create a new array with the size I need (y - x + 1) and for through the old array from x to y and copy, or is there a simpler way? like in C I would write:
      func(array + x, y - x + 1)
      (the second value is for length)