Create a Hash: Difference between revisions

Add ColdFusion
(Add ColdFusion)
Line 44:
hash[ "key1" ] = "foo";
 
 
==[[ColdFusion]]==
<cfset myHash = structNew()>
<cfset myHash.key1 = "foo">
<cfset myHash["key2"] = "bar">
<cfset myHash.put("key3","java-style")>
 
In ColdFusion, a map is literally a java.util.HashMap, thus the above 3rd method is possible.
 
==[[Common LISP]]==
Anonymous user