removeLast
Description
Removes the last element in a list.
Input / Parameter
Name | Description | Input Type | Default | Options | Required |
---|---|---|---|---|---|
data | The list to be updated. | List | - | - | Yes |
Output
Description | Output Type |
---|---|
Returns the updated list. | List |
Example
In this example, we will remove the last element in a list and print the updated list in the console.
Steps
Call the function
List.removeLast
inside theLog.write
function.Then call the function
Conversion.toList
inside theList.removeLast
function.
Result
The console will print
[3, 1]
.
Links
Related Information
See also:
Functions
Last updated