<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Theepan,<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 6, 2015, at 1:45 PM, Theepan <<a href="mailto:vasdeveloper@gmail.com" class="">vasdeveloper@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Team,<div class=""><br class=""></div><div class="">What is the syntactic sugar to access single value from MAPS? I know there is this "get" method, but will be good to have something like DOT notation, like we do with records. Could not find it in the documents.</div></div></div></blockquote><div><br class=""></div><div><br class=""></div><div>A = #{my_key => 1}.</div><div>#{my_key := Val} = A.</div><div>Val.</div><div><br class=""></div><div>For information about maps you can read this [1]</div><div><br class=""></div><div>Hope this helps,</div><div><br class=""></div><div>[1] <a href="http://learnyousomeerlang.com/maps#about-this-chapter" class="">http://learnyousomeerlang.com/maps#about-this-chapter</a></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">It will be handy to access nested MAPS.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Theepan <br class=""></div></div>
_______________________________________________<br class="">erlang-questions mailing list<br class=""><a href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a><br class="">http://erlang.org/mailman/listinfo/erlang-questions<br class=""></div></blockquote></div><br class=""></div></body></html>