-
Notifications
You must be signed in to change notification settings - Fork 46
Add support for search by key/value in generic map #97
Copy link
Copy link
Closed
Labels
Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Nothing further to be done with this issue. Awaiting to be closed.Type: EnhancementMost issues will probably ask for additions or changes.Most issues will probably ask for additions or changes.
Description
Description
On many occasions (e.g., to map from Type to string and vice versa), it's necessary to hold in memory a key=>value and value=>key maps. Implementing a generic mechanism to abstract the two-way search through helper functions over existing map types would be helpful. The new method' signatures might look like this:
func (m Map[K, V]) GetKeyWithValue(value V) (K,bool)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Nothing further to be done with this issue. Awaiting to be closed.Type: EnhancementMost issues will probably ask for additions or changes.Most issues will probably ask for additions or changes.