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:

5 Likes

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

2 Likes

image

what about this ? :slight_smile:

3 Likes

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

3 Likes

Another DesignScript possibility to add to the many above…

6 Likes

This is my personal favorite.

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

3 Likes

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

4 Likes

List.ShiftIndicies… bad typo. :laughing:

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

2 Likes