List Task - Remove Last Elements

Dear Experts,
I was wondering how we can do task shown below:
Short Description: I want to type 4 as an input, Dynamo should give me first 4 row of input list.

List.TakeItems will take a given number of items from a list.

List.DropItems will remove items from a list.

Negative numbers can be useful with these nodes as well. :wink:

3 Likes

1 Like