insertFirst
Description
Inserts an element to the front of a list.
Input / Parameter
Output
Example
In this example, we will insert a value in the first index of a list and print the result in the console.
Step
Call the function
List.insertFirst
inside theLog.write
functionThen call the function
Conversion.toList
inside theList.insertFirst
function.
Result
The console will print
[1,3,1,5]
.
Links
Related Information
See also:
Functions
Last updated