RosettaCodeData/Task/Associative-array-Iteration/Factor/associative-array-iteration-2.factor

3 lines
147 B
Factor
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
H{ { "hi" "there" } { "a" "b" } } [ drop print ] assoc-each ! print keys
H{ { "hi" "there" } { "a" "b" } } [ nip print ] assoc-each ! print values