Jump to content

Hash from two arrays: Difference between revisions

no edit summary
m (→‎{{header|REXX}}: allowed multiple hash keys to point to a particular value.)
No edit summary
Line 574:
makeMap ks vs = fromList $ zip ks vs
mymap = makeMap ['a','b','c'] [1,2,3]</lang>
 
=={{header|Huginn}}==
<lang huginn>from Algorithms import materialize, zip;
 
main() {
keys = [1, 2, 3];
values = ['a', 'b', 'c'];
hash = materialize( zip( key, values ), lookup );
}</lang>
 
=={{header|Icon}} and {{header|Unicon}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.