Mastering Development

Erlang records printing

I am writing a program in erlang and I created this record: -record(tree, {node, left, right}). I want to print a list of different trees, and this is how prints it: [{tree,x1,{x3,0,1},{tree,x2,1,{x3,0,1}}}, {tree,x1,{tree,x3,0,1},{tree,x3,{x2,1,0},1}}] Is there an easy to print it without the word “tree”? (the name of the record). Sure I can just define it […]