Hash from two arrays: Difference between revisions
→{{header|langur}}
Langurmonkey (talk | contribs) |
Langurmonkey (talk | contribs) |
||
Line 1,303:
=={{header|langur}}==
=== the easy way ===
<syntaxhighlight lang="langur">writeln
</syntaxhighlight>
Line 1,310:
=== a longer way ===
Using the append operator would silently overwrite hash values for matching keys, but the more() function will not.
<syntaxhighlight lang="langur">
val new = foldfrom(
{:}, fw/a b c d/, [1, 2, 3, 4],
)
writeln new
{{out}}
|