Top "Key-value" questions

A key-value pair is a set of two linked data items: a key which uniquely identifies some item of data, and the value, which is either the data that is identified or a pointer to the location of that data.

How to create dictionary and add key–value pairs dynamically?

From post: Sending a JSON array to be received as a Dictionary<string,string> I’m trying to …

javascript dictionary key-value
append multiple values for one key in a dictionary

I am new to python and I have a list of years and values for each year. What I want …

python dictionary key-value
How do you create a dictionary in Java?

I am trying to implement a dictionary (as in the physical book). I have a list of words and their …

java dictionary key-value
How to push both key and value into an Array in Jquery

I am reading RSS feed and pushing both Title and Link into an Array in Jquery. What i did is …

jquery arrays key-value
How to remove elements from a generic list while iterating over it?

I am looking for a better pattern for working with a list of elements which each need processed and then …

c# list loops generics key-value
A KeyValuePair in Java

I'm looking for a KeyValuePair class in Java. Since java.util heavily uses interfaces there is no concrete implementation provided, …

java key-value
Java - How to create new Entry (key, value)

I'd like to create new item that similarly to Util.Map.Entry that will contain the structure key, value. The …

java dictionary collections key-value
How to loop through key/value object in Javascript?

var user = {}; now I want to create a setUsers() method that takes a key/value pair object and initializes the …

javascript loops for-loop iteration key-value
Java Class that implements Map and keeps insertion order?

I'm looking for a class in java that has key-value association, but without using hashes. Here is what I'm currently …

java dictionary key-value
for each loop in Objective-C for accessing NSMutable dictionary

I am finding some difficulty in accessing mutable dictionary keys and values in Objective-C. Suppose I have this: NSMutableDictionary *xyz=[[…

objective-c nsdictionary enumeration nsmutabledictionary key-value