Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当您要使用数组模块时-以及在函数式编程中通常何时使用数组时-在这种情况下是erlang。
谢谢。
基本原理是,如果您确实想要使用整数键的功能性(非破坏性)数据结构,那么数组模块比 dict、gb_tree 或类似模块(可以使用任何类型的值作为键)要高效得多。并且索引是从零开始的,因为这对于您想要数组解决的问题通常更有用。
我发现 Learn You Some Erlang 中的注释很离谱。