removeFirst
Description
Removes the first 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 first element in a list and print the updated list in the console.
Steps
Call the function
List.removeFirst
inside theLog.write
function.Then call the function
Conversion.toList
inside theList.removeFirst
function.
Result
The console will print
[1, 5]
.
Links
Related Information
See also:
Functions
Last updated