Search
Preparing search index...
The search index is not available
@zimtsui/binary-heap
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@zimtsui/binary-heap
Heap
Class Heap<T>
Type parameters
T
Hierarchy
Heap
Implements
Iterable
<
T
>
Index
Constructors
constructor
Methods
[iterator]
get
Size
i
push
shift
Constructors
constructor
new
Heap
<
T
>
(
cmp
:
Cmp
<
T
>
, initials
?:
T
[]
)
:
Heap
<
T
>
Type parameters
T
Parameters
cmp:
Cmp
<
T
>
initials:
T
[]
= []
Returns
Heap
<
T
>
Methods
[iterator]
[iterator]
(
)
:
Generator
<
T
,
void
,
unknown
>
Returns
Generator
<
T
,
void
,
unknown
>
get
Size
get
Size
(
)
:
number
Returns
number
i
i
(
index
:
0
)
:
T
throws
RangeError
Parameters
index:
0
Returns
T
push
push
(
x
:
T
)
:
Node
<
T
>
Parameters
x:
T
Returns
Node
<
T
>
shift
shift
(
)
:
T
throws
RangeError
Returns
T
Exports
Heap
constructor
[iterator]
get
Size
i
push
shift
Generated using
TypeDoc
RangeError