<div dir="ltr"><div><div><div><div>Hello,<br><br></div>What's the best way to update a nested map ?<br><br></div>I tried something like :<br><br>M = #{ a => 1, c =>#{x => 1, y => 7}}.<br>M1 = M#{c}#{y => 4711}.<br><br></div><div>As described here: <a href="http://www.erlang-factory.com/upload/presentations/779/WhereareweontheMap.pdf">http://www.erlang-factory.com/upload/presentations/779/WhereareweontheMap.pdf</a><br></div><div><br></div>But for some reason I get an error : syntax error before: '}'<br><br></div>Silviu<br></div>