Questions tagged [keyvaluepair]

Defines a key/value pair that can be set or retrieved.

Defines a key/value pair that can be set or retrieved. The most common key/value pair used is HTTP GET paramaters which take the form of:

key1=value1&key2=value2&key3=value3

This syntax makes this type of storage very open-ended as you continue to append the next key/value pair to the end of the string.


In the mscorlib library (from MSDN)

Namespace: System.Collections.Generic

Type Parameters

TKey

The type of the key.

TValue

The type of the value.

Read more and view examples at MSDN

440 questions
-3
votes
2 answers

Ruby - combining/flattening multiple array of hashes on common hash key/value combination

I am working with a large data set with multiple arrays of hashes which all have a key-value pair in common ("date" & the date value) as the first element of the hash. The array of hashes I need to parse (@data["snapshot"]) is in the following…
Kurt W
  • 321
  • 2
  • 15
-3
votes
1 answer

Compare values of Pairs and sort them

I have Pairs that I would like to sort. I have already done the compare implementation and it seems to be working. I also saw a solution online but the problem is that it doesn't allow it to be static. public static ArrayList
Gana
  • 75
  • 1
  • 7
-3
votes
1 answer

Dictionary how I can take the object value

I have the method HandleNotification(string message, Dictionary additionalData, bool isActive) and I would take the from additionalData the value. I have this additional data: Extracoins:4 I don't understand how I can take the…
MisterX_Dev
  • 429
  • 2
  • 7
  • 16
-4
votes
1 answer

multiple values for one key in python

I've got a dictionary of unique id's (strings), and values for each of these id's (also strings). The problem is that some of the keys have multiple values separated by commas. I can't think of how to use string manipulation to split them based on…
chuckset
  • 1
  • 1
-9
votes
2 answers

Scala convert map k -> (v1,v2) to single Key-value pair

How would be the method to perform the following operation? Convert a Map K1->(v1,v2), K2->(v1,v2) to K1->v1,K1->v2,K2->v1,K2->V2
dataProcs
  • 55
  • 1
  • 13
1 2 3
29
30