Git Product home page Git Product logo

Comments (9)

monmohan avatar monmohan commented on August 28, 2024

Fixed with 5d3cfa1

from dsjslib.

akloeber avatar akloeber commented on August 28, 2024

It's been a while now. Can you please push a new version to npm?
This renders successor/predecessor unusable and there is no workaround. min/max won't work neither under certain conditions (e.g. same TypeError thrown when invoked on empty tree).

from dsjslib.

monmohan avatar monmohan commented on August 28, 2024

Sure. I think I have fixed it but not pushed to npm. Let me do that :)

On Thu Nov 13 2014 at 3:12:34 PM Andreas Klöber [email protected]
wrote:

It's been a while now. Can you please push a new version to npm?
This renders successor/predecessor unusable and there is no workaround.
min/max won't work neither under certain conditions (e.g. same TypeError
thrown when invoked on empty tree).


Reply to this email directly or view it on GitHub
#7 (comment).

from dsjslib.

akloeber avatar akloeber commented on August 28, 2024

Thanks that would be great as your commit 5d3cfa1 fixes all those issues.

from dsjslib.

monmohan avatar monmohan commented on August 28, 2024

Hello,
I just did a couple of modifications and also pushed this to npm. Can you
please check it this is fine..
I am actually travelling and many times dont have access to network..
Thanks
Monmohan

On Thu, Nov 13, 2014 at 3:56 PM, Andreas Klöber [email protected]
wrote:

Thanks that would be great as your commit 5d3cfa1
5d3cfa1
fixes all those issues.


Reply to this email directly or view it on GitHub
#7 (comment).

from dsjslib.

akloeber avatar akloeber commented on August 28, 2024

Good job, with v0.6.14 all tests pass.

from dsjslib.

monmohan avatar monmohan commented on August 28, 2024

Thanks. I am also trying to understand how the library can be made more
useful so please let me know if you are folks you know and are using it
have suggestions.
Monmohan

On Fri, Nov 14, 2014 at 2:43 AM, Andreas Klöber [email protected]
wrote:

Good job, with v0.6.14 all tests pass.


Reply to this email directly or view it on GitHub
#7 (comment).

from dsjslib.

akloeber avatar akloeber commented on August 28, 2024

Well, one thing that is definitely missing with regard to a complete API is a simple size() method. We are using our own thin wrapper around AVLTree so this is not an issue for us but it should be a quick win for you to add.
Furthermore we have implemented an ES6-style iterator (see http://wiki.ecmascript.org/doku.php?id=harmony:iterators) to iterate through the elements via for-of in ascending order which would make sense to be provided directly.
Another useful feature would be a pair of methods to get the element next to a given key even if there is no element with exactly that key (may be called before() resp. after()) whereas successor() and predecessor() should return null on keys that are not present in the set.
I could raise issues if other features that might be useful come into my mind.

from dsjslib.

monmohan avatar monmohan commented on August 28, 2024

Thanks . I will definitely try to address these . Please do raise issues when you think that something is missing which should ideally be provided by library . It would also be good to have feedback on other data structures you are using or any missing data structure that you require but is not present in the library

Sent from my iPhone

On 18 Nov 2014, at 3:29 am, Andreas Klöber [email protected] wrote:

Well, one thing that is definitely missing with regard to a complete API is a simple size() method. We are using our own thin wrapper around AVLTree so this is not an issue for us but it should be a quick win for you to add.
Furthermore we have implemented an ES6-style iterator (see http://wiki.ecmascript.org/doku.php?id=harmony:iterators) to iterate through the elements via for-of in ascending order which would make sense to be provided directly.
Another useful feature would be a pair of methods to get the element next to a given key even if there is no element with exactly that key (may be called before() resp. after()) whereas successor() and predecessor() should return null on keys that are not present in the set.
I could raise issues if other features that might be useful come into my mind.


Reply to this email directly or view it on GitHub.

from dsjslib.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.