[erlang-questions] How to Update List Elements A Lot

Jesper Louis Andersen jesper.louis.andersen@REDACTED
Tue Jul 21 09:55:28 CEST 2015

On Tue, Jul 21, 2015 at 6:00 AM, Hugo Wang <w@REDACTED> wrote:

> In other language, like C or Python, we can init an output list and then
> update its elements inline. In Erlang, what I currently do, would make a
> copy of the list every time when an element need to update. This looks not
> quite right.

Do you have a small snippet of an inner loop somewhere? It may be easier to
recommend an approach then. Do note that crypto-stuff in Erlang is perhaps
not the best approach since the complexity of the VM makes it harder to
account for side channels.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150721/f090a6a8/attachment.htm>

More information about the erlang-questions mailing list