Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SortedList<T>

A sorted list implementation. NOTE: this implementation is not self-balancing

Type parameters

  • T

Hierarchy

  • SortedList

Index

Constructors

constructor

  • new SortedList(getComparable: function): SortedList

Methods

add

  • add(element: any): boolean

find

  • find(element: any): boolean

get

  • get(key: number): any[]

list

  • list(): Array<T>

removeByComparable

  • removeByComparable(element: any): void