3 Replies Latest reply: Apr 4, 2009 7:57 AM by 843789 RSS

    Extracting only part of an array

    843789
      Hi,
      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)
      Thanx