Hash from two arrays: Difference between revisions
Content added Content deleted
Drkameleon (talk | contribs) No edit summary |
Langurmonkey (talk | contribs) |
||
Line 856: | Line 856: | ||
['one 'two 'three 'four] [1 2 3 4] >table</lang> |
['one 'two 'three 'four] [1 2 3 4] >table</lang> |
||
=={{header| |
=={{header|langur}}== |
||
=== the easy way === |
=== the easy way === |
||
<lang |
<lang langur>writeln toHash ["a", "b", "c", "d"], [1, 2, 3, 4]</lang> |
||
=== a longer way === |
=== a longer way === |
||
<lang |
<lang langur>val .new = foldfrom( |
||
f(.hash, .key, .value) .hash ~ h{.key: .value}, |
f(.hash, .key, .value) .hash ~ h{.key: .value}, |
||
h{}, |
h{}, |