Quantcast
Channel: Replace an element at an index in a list in Erlang - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by Mazen Harake for Replace an element at an index in a list in Erlang

$
0
0

I wouldn't recommend using a list in this way, it makes me think that your problem might be design related rather than related to solving it neatly. Perhaps if you explains what you have the list for?

However if that is what you actually need/want/have to do; then what you are doing is correct.

I would recommend using an ets table or dict for random access operations.


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>