Skip to content

Commit

Permalink
refactor(heaps): update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Sep 6, 2020
1 parent e95ff1e commit 1d7ae16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions packages/heaps/src/dheap.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { compare } from "@thi.ng/compare";
import { Heap } from "./heap";
import type { ICopy, IEmpty, IStack } from "@thi.ng/api";
import { compare } from "@thi.ng/compare";
import type { DHeapOpts } from "./api";
import { Heap } from "./heap";

/**
* Generic d-ary heap / priority queue with configurable arity (default
Expand All @@ -15,7 +15,8 @@ import type { DHeapOpts } from "./api";
*
* {@link https://en.wikipedia.org/wiki/D-ary_heap }
*/
export class DHeap<T> extends Heap<T>
export class DHeap<T>
extends Heap<T>
implements ICopy<DHeap<T>>, IEmpty<DHeap<T>>, IStack<T, T, DHeap<T>> {
/**
* Returns index of parent node or -1 if `idx < 1`.
Expand Down
2 changes: 1 addition & 1 deletion packages/heaps/src/pairing.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { compare } from "@thi.ng/compare";
import type {
Comparator,
Fn,
Expand All @@ -8,6 +7,7 @@ import type {
ILength,
IStack,
} from "@thi.ng/api";
import { compare } from "@thi.ng/compare";
import type { HeapOpts } from "./api";

interface Node<T> {
Expand Down

0 comments on commit 1d7ae16

Please sign in to comment.