Apple Bazooka Pancreas.gh (5.9 KB)
It would be nifty to directly have the last item (like after sorting to find the longest curve for example) and also all the others in a separate list.
Apple Bazooka Pancreas.gh (5.9 KB)
Hi Nathan,
Thanks, I’ll keep that in the back of my mind for when I’ll have time to do Pyton scripting.
Let’s say my question is more like a wish for “Split list” to accept the negative indexes.
Here, to help remedy the required effort of writing code (2 lines of real action):
You can also use the list length component and an expression of x-1 ( or a subtraction component with 1) to split the list at the last item:
…which is what I did
@DavidRutten ; I am mostly wondering why “-1” doesn’t work with Split.
If there’s no valid reason, then I guess it should be implemented, for consistency.
I would agree that it should ‘wrap’ if a negative index is supplied.