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

Content deleted Content added
changing number of computer languages in lead
OptimJ: copy editing
Line 1,177:
Lists of pairs and functional maps both provide a purely functional interface. By contrast, hash tables provide an imperative interface. For many operations, hash tables are significantly faster than lists of pairs and functional maps.
 
=== [[OptimJ]] ===
{{More citations needed section|date=February 2011}}
The [[OptimJ]] programming language is an extension of Java 5. As javadoes Java, Optimj provides maps.; But,but OptimJ also provides true associative arrays:. javaJava arrays are indexed with 0-basedpositive integers; associative arrays are indexed with any collectiontype of keyskey.
 
<syntaxhighlight lang=Java>
Line 1,207:
</syntaxhighlight>
 
Of course, it is possible to define multi-dimensional arrays, to mix javaJava arrayarrays and associative arrays, to mix maps and associative arrays.
 
<syntaxhighlight lang=Java>