Top "Map" questions

A dictionary maps keys to values allowing efficient retrieval of values by keys.

How would you define map and filter using foldr in Haskell?

I'm doing a bit of self study on functional languages (currently using Haskell). I came across a Haskell based assignment …

haskell map functional-programming filter fold
Is map() in javascript synchronous?

Function is : [1,2,3].map( function (item) { console.log(item); //return 'something'; }); My expected behaviour is getting only 1 as output, unless i …

javascript asynchronous map synchronous
Is the javascript .map() function supported in IE8?

When doing this: var a = new Array("a", "b"); a.map(function() { }); in IE8 I get: "Object doesn't support this …

javascript internet-explorer-8 map
Is there a more efficient implementation for a bidirectional map?

I created a simple bidirectional map class that works by internally storing two std::map instances, with opposite key/value …

c++ c++11 data-structures map bimap
Scala: how to merge a collection of Maps

I have a List of Map[String, Double], and I'd like to merge their contents into a single Map[String, …

scala map folding scala-collections
Map an array modifying only elements matching a certain condition

In Ruby, what is the most expressive way to map an array in such a way that certain elements are …

ruby map iteration collect
JSF-2 f:selectItems with Map does not display itemLabel

When I use f:selectItems to display items in a Map I cannot display the value of the Map item, …

jsf jsf-2 map el
Getting 0.0 for latitude and longitude while showing current location in map

I am using the following code to get my current location. But the problem I am facing is, it always …

android google-maps map geolocation userlocation
Checking for existence in std::map - count vs find

So there seem to be two generally acceptable methods of determining whether or not a key exists in a std::…

c++ map stl stdmap
Error Inflating class com.google.android.maps.MapView

i am just following a simple map tutorial http://developer.android.com/resources/tutorials/views/hello-mapview.html but getting this …

android google-maps map android-mapview inflate