Kirill486 / functional-red-black-tree

A purely functional red-black tree data structure
MIT License
5 stars 1 forks source link

Refactoring/typescript typings #1

Closed Kirill486 closed 4 years ago

Kirill486 commented 4 years ago
  1. Extract library definitions (no executing code touched)
  2. Get tests to work
  3. Use modern typescript to improve code with human-readable type annotations -- class syntax instead of function-constructor -- generic argument ValueType types the whole tree (nodes, iterators, stacks)
Kirill486 commented 4 years ago

@mikolalysenko, I wonder what may be your feedback. Notice how I didn't change a line of your code except the es5 arguments thing))