Skip to content

TypeScript data structures and algorithms. Meeting the demands of the modern web.

License

Notifications You must be signed in to change notification settings

emmajsadams/dstruct

Repository files navigation

Gitpod ready-to-code

dstruct

NOT FOR PRODUCTION USE: This library is a learning excercise for me. If you'd like a production ready data structures library please see https://facebook.github.io/immutable-js/

Data Structures & Algorithms for TypeScript and Javascript. Based on Java & C# Collections, and Google Guava

Current version: 0.0.4 (alpha).

Documentation can be found in https://github.com/codystebbins/tscollections/blob/master/lib/Interfaces.d.ts. Documentation describing the specific implementations can be found in the file representing that implementation.

Mostly finished and tested.

  • Lists
  • ArrayList
  • DoublyLinkedList
  • Maps
  • HashMap
  • TreeMap
  • BiMaps
  • HashBiMap
  • MultiSets
  • HashMultiSet
  • TreeMultiSet
  • Queues
  • LinkedListQueue
  • Sets
  • HashSet
  • TreeSet
  • Stacks
  • ArrayStack
  • Tables
  • HashBasedTable
  • TreeBasedTable
  • Trees
  • RedBlackTree

Dependencies

ES6 Map support. https://github.com/eriwen/es6-map-shim is used by the library, but any shim or native browser support will work.

Development guide

Setup

  • npm install -g bower (if not installed)
  • npm install -g tsd (if not installed)
  • npm install

Style

Notes

  • Anytime changes are made to the lib directory (the main source code) "grunt dev" should be run. Grunt test relies on the last version of "grunt dev".
  • "grunt test" runs all the tests.

About

TypeScript data structures and algorithms. Meeting the demands of the modern web.

Resources

License

Stars

Watchers

Forks

Packages

No packages published