Hash from two arrays: Difference between revisions
Content added Content deleted
Drkameleon (talk | contribs) |
|||
Line 1,067: | Line 1,067: | ||
T := table( zip( `=`, A, B ) );</lang> |
T := table( zip( `=`, A, B ) );</lang> |
||
=={{header|Mathematica}}== |
=={{header|Mathematica}}/{{header|Wolfram Language}}== |
||
<lang Mathematica>Map[(Hash[Part[#, 1]] = Part[#, 2]) &, |
<lang Mathematica>Map[(Hash[Part[#, 1]] = Part[#, 2]) &, |
||
Transpose[{{1, 2, 3}, {"one", "two", "three"}}]] |
Transpose[{{1, 2, 3}, {"one", "two", "three"}}]] |