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 update value of a key in dictionary in c#?

I have the following code in c# , basically it's a simple dictionary with some keys and their values. Dictionary<…

c# c#-4.0 dictionary key-value
Python: How to check if keys exists and retrieve value from Dictionary in descending priority

I have a dictionary and I would like to get some values from it based on some keys. For example, …

python dictionary key-value
Storing a Key Value Array into a compact JSON string

I want to store an array of key value items, a common way to do this could be something like: // …

json key-value
Iterate through dictionary values?

Hey everyone I'm trying to write a program in Python that acts as a quiz game. I made a dictionary …

python python-3.x loops dictionary key-value
jQuery get values from inputs and create an array

I have many inputs on a page. I want to create an associative array with each input's name and value …

javascript jquery input key-value
What is the difference between a map and a dictionary?

I know a map is a data structure that maps keys to values. Isn't a dictionary the same? What is …

dictionary data-structures language-agnostic key-value
Ruby - getting value of hash

I have a hash like {:key1 => "value1", :key2 => "value2"} And I have a variable k which will have …

ruby hash key-value
How do I assign a dictionary value to a variable in Python?

I'm an amateur when it comes to programming, but I'm trying my hand at Python. Basically what I want to …

python variables dictionary variable-assignment key-value
Typescript array of key value pairs declaration

Confused about the following declaration: constructor(controls: {[key: string]: AbstractControl}, optionals?: {[key: string]: boolean}, validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn) What is …

arrays typescript key-value