@fluent-iterable/js-sdsl
v0.7.2
Published
A plugin with useful operations to generate js-sdsl data structures
Downloads
7
Readme
This packages is an ex extension to @codibr/fluent-iterable which integrates it with js-sdsl, a library with some great data structures implementations
How to Install
npm i @fluent-iterable/js-sdsl @fluent-iterable js-sdsl
How to use it
To use it, you need to import this package in the main file of your project, making its methods accesible in anywhere. Remember: you have to make sure the package is imported on your unit tests too!
About the integration, we have some resolving operations to generate some of the data structures provided by js-sdsl, which is:
- toBinarySearchTree: creates an OrderedMap
- toBinarySearchTreeAsync: creates an OrderedMap asynchronously
- toBinarySearchTreeSet: creates an OrderedSet
- toBinarySearchTreeSetAsync: creates an OrderedSet asynchronously
- toQueue: creates a Queue
- toQueueAsync: creates a Queue asynchronously
- toStack: creates a Stack
- toStackAsync: creates a Stack asynchronously
- toDeque: creates a Deque
- toStackAsync: creates a Deque asynchronously
- toPriorityQueue: creates a PriorityQueue
- toPriorityQueue: creates a PriorityQueue asynchronously
To see how to use each of those methods, checkout it out on the in code documentation!
License
Licensed under MIT.