[newbie] refactor function?

Bengt Kleberg <>
Tue Feb 1 10:13:52 CET 2005


Gaspar Chilingarov wrote:
...deleted
> following function just adds to list of tuples with range descriptions 
> initial zero value, which will be changed later in application.

you might want to consider using records (instead of tuples).


...deleted
> another way -- what is a common way to traverse list, find one element, 
> and replace it with new data? are there any functions in lists: module 

take a look at
lists:keyreplace/4


bengt



More information about the erlang-questions mailing list