pop [x: list] -> any

Remove and return the last item in x

swap [x: list] [i: int] [j: int]

Swap the items at indices i and j in list x

popi [x: list] [i: int] -> any

Remove and return the item at index i in list x

peek [x: list] -> any

Return (but do not remove) the last item in x

snip [x: list] [len: int] -> list

Shortens x to the first len items, returns the rest

sort [x: list]

Sorts x in-place

i.mean [x: list] -> int

Returns the integer mean of x

f.mean [x: list] -> float

Returns the float mean of x

min [x: list] -> int, float

Returns the minimum value in x

max [x: list] -> int, float

Returns the maximum value in x