Associative array/Iteration: Difference between revisions
→{{header|TXR}}: Dop @(do ...), remove spurious argument in [h k nil], streamline.
m (→{{header|Sidef}}: removed the useless semicolons) |
(→{{header|TXR}}: Dop @(do ...), remove spurious argument in [h k nil], streamline.) |
||
Line 2,414:
=={{header|TXR}}==
<lang
(each ((k '(a b c))▼
(v '(1 2 3)))▼
(set [*h* k nil] v))▼
(dohash (k v *h*)▼
<pre>$ txr hash.txr ▼
(put-line `@k -> @v`))</lang>
{{out|Run}}
c -> 3
b -> 2
|