-
Notifications
You must be signed in to change notification settings - Fork 1
List
Lists are a generic datastructure and with that an exception as Moose doesn't allow you to define custom generic Classes.
Appends the provided item to the end of the list.
Appends the rest the provided list to the end of the first one.
Returns a list where each item is wrapped in a tuple with the first element being the index in the original list and the second being the original item.
Returns a string of the joined list, where each element is converted to String via its represent()
method.
Returns a string of the joined list, where each element is converted to String via its represent()
method.
In addition the first argument is used as seperator between the joined elements.
Returns the item at the provided index.
This method panics with OutOfBoundsPanic
if the item at the index doesn't exist.
There is syntactic sugar for this function:
l = [1, 77, 3, 4]
println(l[1])
Updates the item at the provided index.
This method panics with OutOfBoundsPanic
if the item at the index doesn't exist.
There is syntactic sugar for this function:
l = [1, 77, 3, 4]
l[1] = 2
Returns the length of the list.
Reverses the List in place.
Returns a reversed copy of the list and leaves the original intact.