Top method (list)

Returns the specified number of items at the top of the list.

Syntax

list.Top(count)

Returns top count elements from list.

If there are less than count elements in list then list is returned unchanged.