You can use the 1:2
indexing to select the first two elements of the list and then remove them using the []
empty brackets.
Here's an example:
main.m134 chars9 lines
Output:
main.m15 chars2 lines
Note: This operation modifies the original list. If you want to keep the original list intact, you can make a copy of it and apply the operation on the copy.
gistlibby LogSnag