[erlang-questions] pattern matching & map

Oleg lego12239@REDACTED
Mon Nov 26 10:21:25 CET 2018

  Hi, all.

I try to do the pattern matching in a function definition with maps:

add_prms([{Name, Val}|T], #{Name := Vals} = Prms) ->

But erlc says me:

variable 'Name' is unbound

Is this is not supported yet?

Erlang/OTP 20

Олег Неманов (Oleg Nemanov)

More information about the erlang-questions mailing list