File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ Parent is [@aureooms/js-heap](https://github.com/aureooms/js-heap).
99> [ regenerator-runtime/runtime] ( https://www.npmjs.com/package/regenerator-runtime ) .
1010
1111``` js
12- let heap = new FibonacciHeap ( compare .increasing ) ;
12+ import {FibonacciHeap } from ' @aureooms/js-fibonacci-heap' ;
13+ import {increasing } from ' @aureooms/js-compare' ;
14+ let heap = new FibonacciHeap ( increasing ) ;
1315```
1416
1517[ ![ License] ( https://img.shields.io/github/license/aureooms/js-fibonacci-heap.svg )] ( https://raw.githubusercontent.com/aureooms/js-fibonacci-heap/main/LICENSE )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import 'regenerator-runtime/runtime.js' ;
1212
1313Then, import the library where needed
1414``` js
15- const fibonacciheap = require ( ' @aureooms/js-fibonacci-heap' ) ;
15+ const { FibonacciHeap } = require ( ' @aureooms/js-fibonacci-heap' ) ;
1616// or
17- import * as fibonacciheap from ' @aureooms/js-fibonacci-heap' ;
17+ import { FibonacciHeap } from ' @aureooms/js-fibonacci-heap' ;
1818```
You can’t perform that action at this time.
0 commit comments