Inserts the object obj at the beginning of the list.
prepend(Object obj) | |||
---|---|---|---|
Argument | Object | obj | Object to be inserted. |
Return value | List |
Formula | Result |
---|---|
=List {1, 2}.prepend(4) | [4, 1, 2] |
This functionality is only available for certain module packages.