SuperCollider CLASSES

SortedList

a Collection whose items are kept in a sorted order.

Class Methods

*new (size: 8, function)

Creates a SortedList with the initial capacity given by size and a comparison function.

Inherited class methods

Instance Methods

-add (item)

Adds an item in the SortedList at the correct position.

SortedList[1, 2, 5, 6].add(4).postln;

-addAll (aCollection)

Adds all the items in the collection into the SortedList.

SortedList[1, 2, 5, 6].addAll([0, 3, 4, 7]).postln;

Inherited instance methods

Undocumented instance methods

-copyRange (start, end)

-copySeries (first, second, last)

-function

-function = value

-sort

-sortRange (i, j)