Hash from two arrays: Difference between revisions

Content added Content deleted
Line 878: Line 878:
=={{header|langur}}==
=={{header|langur}}==
=== the easy way ===
=== the easy way ===
<lang langur>writeln toHash w/a b c d/, [1, 2, 3, 4]
<lang langur>writeln toHash w/a b c d/, [1, 2, 3, 4]</lang>


# note: w/a b c d/ == ["a", "b", "c", "d"]</lang>
Note that w/a b c d/ is a semantic convenience equivalent to ["a", "b", "c", "d"].


=== a longer way ===
=== a longer way ===