Jump to content

Hash from two arrays: Difference between revisions

no edit summary
No edit summary
Line 289:
=={{header|Clojure}}==
<lang lisp>(zipmap [\a \b \c] [1 2 3])</lang>
 
=={{header|CoffeeScript}}==
<lang coffeescript>
keys = ['a','b','c']
values = [1,2,3]
map = {}
map[key] = values[i] for key, i in keys
</lang>
 
=={{header|ColdFusion}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.