GH2: remove(array, index) throws an array bounds error

Hi, I’m really enjoying the new expressions in Grasshopper 2! It’s especially interesting that they can run C# code.


I think I found a small bug: using remove(x, 1) in Evaluate Expression, as shown in the screenshot, gives this error instead of removing the second item:

Source array was not long enough. Check the source index, length, and the array’s lower bounds. (Parameter ‘sourceArray’)

Am I missing something, or is this a bug?

Rhino 9 Beta· GH2 9.0.26293.12303 · Windows
@DavidRutten

4 Likes