我有两个数组
a = [:foo, :bar, :baz, :bof]
和
b = ["hello", "world", 1, 2]
我想要
{:foo => "hello", :bar => "world", :baz => 1, :bof => 2}
有办法做到这一点吗?
https://stackoverflow.com/questions/3359659
相似问题