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.

Key value pairs in C# Params

I'm looking for a way to have a function such as: myFunction({"Key", value}, {"Key2", value}); I'm sure there's something …

c# parameters key-value
How to set dynamic values with Kubernetes yaml file

For example, a deployment yaml file: apiVersion: extensions/v1beta1 kind: Deployment metadata: name: guestbook spec: replicas: 2 template: metadata: labels: …

templates kubernetes yaml config key-value
Python - can a dict have a value that is a list?

When using Python is it possible that a dict can have a value that is a list? for example, a …

python list dictionary key-value
JavaScript: Remove duplicates of objects sharing same property value

I have an array of objects that I would like to trim down based on a specific key:value pair. …

javascript arrays angularjs object key-value
Go map of functions

I have Go program that has a function defined. I also have a map that should have a key for …

map go key-value func
What's the purpose of Kafka's key/value pair-based messaging?

All of the examples of Kafka | producers show the ProducerRecord's key/value pair as not only being the same type (…

apache-kafka message-queue messaging key-value messagebroker
How to correctly use HashMap?

HashMap savedStuff = new HashMap(); savedStuff.put("symbol", this.symbol); //this is a string savedStuff.put("index", this.index); //this is …

java data-structures map hashmap key-value
Can I easily iterate over the values of a map using a range-based for loop?

Is it possible to iterate over all of the values in a std::map using just a "foreach"? This is …

c++ dictionary for-loop c++11 key-value
What is the best VBA data type`key`=>`value` to save data same as PHP array

I'm working with VBA and need to save data in type key=>value to getting fastest; This data type …

arrays list vba key-value
How do you escape colon (:) in Properties file?

I am using a properties file to store my application's configuration values. In one of the instances, I have to …

java properties escaping key-value colon