This is a technique that I’ve used many times to achieve some of my goals. It’s a little more complicated than you might think. I’m using it in conjunction with the hashmap-like syntax of the Map class. But just to clarify, this is more of a pattern-based approach. There are three levels of self-awareness.
The first level is you may know what a hash map is. And you know where it’s useful, thats it.
But you also know that it is NOTHING like a hashmap. A hashmap is a map that stores a single key value. Hashmaps are a good example of this, because they are used for storing data for websites. If you knew what a hashmap was, you would be able to create it in your own mind. But thats not what a hashmap is. A hashmap is a collection of keys and values. It can be thought of as a database.
But that doesnt mean that you can use a hashmap to store a key value that is not a key value. For example, if you know that a key is a key value, like a product name, and you know the name of the product, then you can think of a hash map as storing one key value, and retrieving the value of the key by looking at the contents of the hash map.
In the case of the hashmap, the key may just be a string. But if you know that a key is a hashmap, like a product name, you can think of the key as a key value and the value as the contents of the hashmap.