Convert Term?

Jens Peder Terjesen (ETO) Jens.Peder.Terjesen@REDACTED
Mon Oct 30 14:25:26 CET 2000


Hi.

If I have a record with nested records in it, is there an easy way
to convert the nested record names without explicitly addressing
each record?

Example (tuple representation of records):

    Item = {record1,"string",
	    {record2,{record3,field31,field32},
	     field22},
	    {record3,field31,field32}},

I want to change the name of all record3 to record4.
Is this possible without explicitly traversing the whole
record structure?

Jens




More information about the erlang-questions mailing list