Passing in record name to a function

Louis Stamsma louis_stamsma@REDACTED
Sun Oct 6 07:48:57 CEST 2002


Hello,

I'm new to Erlang and have some trouble with records. I would like to write a generic function that updates a field in a record (returning a new version of the record). For this purpose 
I would like to give the function a parameter indicating which field to update. Is this possible ?

Regards,

Louis





More information about the erlang-questions mailing list