问题标签 [zipmap]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
143 浏览

dictionary - 组合并计算两个向量返回映射 Clojure

我有两个向量[shoes milk shoes][1 3 1],而我想要得到的地图是{shoes 2, milk 3}。我尝试了zipmap两个向量,只{shoes 1 milk 3}显示。没有循环和迭代,还有另一种方法吗?