Comparison of programming languages (associative array): Difference between revisions

Content deleted Content added
m retrive retrieve
Language support: added FoxPro example
Line 236:
end;
</source>
 
=== FoxPro ===
Visual FoxPro implements mapping with the Collections Class
 
<pre>
mapping = NEWOBJECT("Collection")
mapping.Add("Daffodils", "flower2") && Add(object, key) - key must be character
index = mapping.GetKey("flower2") && returns the index value 1
object = mapping("flower2") && returns "Daffodils" && retrieve by key
object = mapping(1) && returns "Daffodils" && retrieve by index
</pre>
 
See Collections in FoxPro Help for all the details.
 
=== Haskell ===