Lists
Last N Elements
4min
Returns the last N elements from a given list.
- input a list (list<object>)
- input the number of elements to receive (int)
- sorted (dropdown): unsorted, sorted ascendingly, sorted descendingly
- results (list<object>) - the final list
- Ensure the input list contains enough elements to retrieve the last N elements.
- The output list will contain the last N elements based on the specified sorting order, if any.
Updated 14 Apr 2024
Did this page help you?