<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr">I believe below link would be a good reference.</div><div dir="ltr"><a href="https://bugs.erlang.org/plugins/servlet/mobile#issue/ERL-88">https://bugs.erlang.org/plugins/servlet/mobile#issue/ERL-88</a></div><div dir="ltr">And yes, this feature is not yet implemented even in Erlang/OTP 21.</div><div dir="ltr">I encounter the same problem when I read the second edition of joe’s Erlang book.</div><div dir="ltr"><br></div><div dir="ltr">Best Regards,</div><div dir="ltr">Randall</div><div dir="ltr"><br>在 2018年11月26日,17:21,Oleg <<a href="mailto:lego12239@yandex.ru">lego12239@yandex.ru</a>> 写道:<br><br></div><blockquote type="cite"><div dir="ltr"><span> Hi, all.</span><br><span></span><br><span>I try to do the pattern matching in a function definition with maps:</span><br><span></span><br><span>add_prms([{Name, Val}|T], #{Name := Vals} = Prms) -></span><br><span></span><br><span>But erlc says me:</span><br><span></span><br><span>variable 'Name' is unbound</span><br><span></span><br><span>Is this is not supported yet?</span><br><span></span><br><span>Erlang/OTP 20</span><br><span></span><br><span>-- </span><br><span>Олег Неманов (Oleg Nemanov)</span><br><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br><span></span><br></div></blockquote></body></html>