Top "Associative-array" questions

An associative array is an abstract data type composed of a collection of unique keys mapped to a collection of values.

Javascript: Checking if an object has no properties or if a map/associative-array is empty

Possible Duplicate: How do I test for an empty Javascript object from JSON? Is there an easy way to check …

javascript map associative-array is-empty object-property
Ruby : Associative Arrays

Does Ruby on rails have associative arrays? For eg: a = Array.new a["Peter"] = 32 a["Quagmire"] = 'asdas' What is the …

ruby associative-array
Iterating over a complex Associative Array in PHP

Is there an easy way to iterate over an associative array of this structure in PHP: The array $searches has …

php arrays associative-array
JavaScript: Adding to an associative array

I have a function called insert which takes two parameters (name and telnumber). When I call this function I want …

javascript arrays associative-array
Finding the minimum value's key in an associative array

In PHP, say that you have an associative array like this: $pets = array( "cats" => 1, "dogs" => 2, "fish" => 3 ); How …

php associative-array
How to make a list of associative array in yaml

I'm trying to store some configuration variables in yaml represented as an associative array aka dictionary. Here is how I …

ruby-on-rails dictionary yaml associative-array
Does powershell have associative arrays?

I am writing a function that returns an id, name pair. I would like to do something like $a = get-name-id-pair() $…

arrays powershell associative-array
JavaScript associate array

In Python I could do something like myMap = {key: [value1, value2]} and then access the value2 using myMap[key][1] Can …

javascript associative-array
Associative arrays in C

I am implementing a way to transfer a set of data to a programmable dongle. The dongle is based on …

c arrays associative-array dongle
Return all array elements except for a given key

Simple one, I was just wondering if there is a clean and eloquent way of returning all values from an …

php associative-array