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.
私は単にetsのordered_setタイプを使いたいだけです。
しかし、私が入れた用語は、1、2、3、4 のように、Erlang の用語ソートで保存されます...
Erlang 用語を 4、3、2、1 のように逆順に格納する方法
それは不可能です。ordered_set標準の Erlang 用語の順序で動作し、それをオーバーライドする方法はありません。ただし、 and を使用ets:lastしets:prevて、最後に保存された用語から最初に保存された用語まで繰り返すことができます。
ordered_set
ets:last
ets:prev