SortedNList:
Filter:
adclib/Classes (extension) | Undocumented classes

SortedNList
ExtensionExtension

a limited-size SortedList

Description

SortedNList can be used to get the first n sorted elements of a longer list. more efficient alternative to list.copy.sort.keep(n);

First code examples:

Class Methods

.new

Arguments:

maxSize
function

Instance Methods

.maxSize

.add

Arguments:

item

.addAll

Arguments:

aColl

.sort