Skip to content

Instantly share code, notes, and snippets.

@adolfont adolfont/map.exs Secret
Created Dec 1, 2019

Embed
What would you like to do?
clean@adolfo-370E4K:~/Dropbox/2019/Elixir/github/introducao-a-programacao-funcional$ iex
Erlang/OTP 21 [erts-10.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]
Interactive Elixir (1.9.4) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> %{secondary:B”, first:A”} = %{first:A”}
** (SyntaxError) iex:1: unexpected token: "" (column 14, code point U+201C)
iex(1)> %{secondary:B”, first:A”} = %{first:A”}
** (SyntaxError) iex:1: unexpected token: "" (column 14, code point U+201C)
iex(1)> %{secondary: "B", first: "A"} = %{first: "A"}
** (MatchError) no match of right hand side value: %{first: "A"}
(stdlib) erl_eval.erl:453: :erl_eval.expr/5
(iex) lib/iex/evaluator.ex:257: IEx.Evaluator.handle_eval/5
(iex) lib/iex/evaluator.ex:237: IEx.Evaluator.do_eval/3
(iex) lib/iex/evaluator.ex:215: IEx.Evaluator.eval/3
(iex) lib/iex/evaluator.ex:103: IEx.Evaluator.loop/1
(iex) lib/iex/evaluator.ex:27: IEx.Evaluator.init/4
iex(1)> %{secondary: "B", first: "A"} = %{first: "A"}
** (MatchError) no match of right hand side value: %{first: "A"}
(stdlib) erl_eval.erl:453: :erl_eval.expr/5
(iex) lib/iex/evaluator.ex:257: IEx.Evaluator.handle_eval/5
(iex) lib/iex/evaluator.ex:237: IEx.Evaluator.do_eval/3
(iex) lib/iex/evaluator.ex:215: IEx.Evaluator.eval/3
(iex) lib/iex/evaluator.ex:103: IEx.Evaluator.loop/1
(iex) lib/iex/evaluator.ex:27: IEx.Evaluator.init/4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.