<quote>
HashMap map = new HashMap();

map["a"] = 1;
map["b"] = 2;

for each key in map {
        print '<a href="' + key + '">' + map[key] + '</a>';
}
</quote>


Not sure this is a true "HashMap" but it would replicate your example.

<cfscript>
        map = structNew();

        map["a"] = 1;
        map["b"] = 2;
</cfscript>

<cfloop list="#structKeyList(map)#" index="key">
        <a href="#map[key]#">#map[key]#</a>
</cfloop>

Response just typed into this email, watch out for syntax omissions and errors 
and all the usual caviats. 


--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 |   |
---------  Binary Soduko
|   |   |
---------
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231152
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to