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.removeLastinside theLog.writefunction.Then call the function
Conversion.toListinside theList.removeLastfunction.
Result
The console will print
[3, 1].
Links
Related Information
See also:
Functions
Last updated