RosettaCodeData/Task/Associative-array-Creation/Factor/associative-array-creation.factor
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

6 lines
163 B
Factor

H{ { "one" 1 } { "two" 2 } }
{ [ "one" swap at . ]
[ 2 swap value-at . ]
[ "three" swap at . ]
[ [ 3 "three" ] dip set-at ]
[ "three" swap at . ] } cleave