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