How to delete the last and first number in a list using dynamo

how to remove first and last item in my list, using “dropitems node” only remove first or last item not both in the same time


Cheers. :slight_smile:

u don’t solve the problem u only use dropitem node two times :wink:

Hi @andrew.eskender ,

I think the above solution solve it already. How about List.Slice

?

Cheers,
Jowenn

image

what about this ? :slight_smile:

You should create a code or use a package like Ahmad’s.

Another DesignScript possibility to add to the many above…

This is my personal favorite.

There is also List.ShitIndicies followed by a List.Drop.

Haha “ShitIndicies”, does that just automatically get rid of the ones you don’t need anymore :joy:?

List.ShiftIndicies… bad typo. :laughing:

Springs nodes have the perfect solution to you but if you dont want to install packages try this solution: