How to create Map from Vector

流过昼夜 提交于 2021-01-28 07:53:23

问题


The containers package already contains functions to convert Set and List to Map but it's missing one for Vector from vector package.

Is this because package developers do not want to have dependencies on other (similar) packages?

Shouldn't be some general package which converts between data structures? In this way I always have to convert to List to convert to other structures. But I want to minimize use because of performance.

来源:https://stackoverflow.com/questions/41960585/how-to-create-map-from-vector

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!