Comments (9)
Fixed with 5d3cfa1
from dsjslib.
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.
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.
Thanks that would be great as your commit 5d3cfa1 fixes all those issues.
from dsjslib.
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.
Good job, with v0.6.14 all tests pass.
from dsjslib.
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.
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.
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)
- TernarySearchTrie().delete has bugs.
- Enhance Loading cache HOT 2
- Return value of BST.put() depends on state
- cache get() returns synchronously when item found in cache HOT 1
- async loader callbacks are fired only once if multiple requests are issues in quick succession HOT 1
- No way to suppress debug output HOT 2
- Extend binary trees to search neighbors HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsjslib.