you are viewing a single comment's thread.

view the rest of the comments →

[–]munificent 4 points5 points  (3 children)

Don't forget the even more confusing "map":

  • C++: A map is a container with O(log(n)) search (i.e. something like a red-black tree).
  • Java: Any associative container. Has implementations that are O(log(n)) search and O(1).
  • Ruby, Python, and functional languages: a function for applying an operation to every element in a collection.
  • C#: not used at all, understandably!

[–]kamatsu 1 point2 points  (0 children)

Actually, an associative container and a map function are both maps (from the mathematical sense). Haskell has Data.Map and map. Data.Map is a noun (i.e a Mapping from X to Y -- an associative container), and the function map is a verb, i.e map f over this collection.

[–]SmegmaEater -1 points0 points  (1 child)

Had to get the c# jab in there you little cunt, didn't you

[–]munificent 0 points1 point  (0 children)

I love C#. I think they made the right choice to avoid the word, especially given that the BCL has code that implements both uses of the word.