List.shrink

shrinks the size of the list, removing last elements.

class List(T)
bool
shrink

Return Value

Type: bool

true if shrunk, false if not for example if newSize was greater than actual size

Meta