Code Monkey home page Code Monkey logo

hashmap's Issues

Convert to ESModule, and transpile for other varients

We want:
ES Module untranspiled
Common JS for Node, minimaly untranspiled
Support for 99.5% of browsers, heavily transpiled Universal Module (UMD)
Support for browsers < 2 years., partialy transpiled Universal Module (UMD)

Provide Architectural Documentation

It wasn't clear, neither from documentation nor from code and neither from automatic tests, what methods of access support the order-preserving iteration.
Consider also the explicit reordering, such as https://docs.rs/indexmap/1.6.1/indexmap/map/struct.IndexMap.html#method.sort_keys and https://docs.rs/indexmap/1.6.1/indexmap/map/struct.IndexMap.html#method.sort_by

The docs mention using HAMT and trie, but I couldn't verify it from a cursory look at the code. IMHO there should be a mapping between the high-level documentation, such as the mention of HAMT, and the relevant code. Imagine going to Google Maps, zooming in and seeing entirely different location. The lack of connection or mapping between the different layers of documentation is similarly disconcerting. In order to be reusable ( https://youtu.be/pW-SOdj4Kkk ) software needs to allow for gradual zooming in and our, from architectural overview to code and back, IMHO.

Improve iteration

Iterate over Buckets better so that we can support streaming/functional programming, without preloading arrays.

Improve Optional => Option

I prefer the language semantics in Rust for this use case, than the Javaish ones.

Worth adding an iterable.

Overwrite key

use the overrides function to allow us to determine whether a key should also be overwritten, default false.
With push and unshift methods we may want to default this to true. To be thought through and decided.

Provide reverse iterators

Makes most sense for LinkedHashMaps, but will also work against HashMaps as they do have an order, just by hash,

concat function

Given a map (first),
When I call concat on it with another map (second)
Then I get a new map (third) back with the contents of both.
And if ordered, then the order of third is one and then second following.

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.