Skip to content

Instantly share code, notes, and snippets.

@adolfont

adolfont/map.exs Secret

Created December 1, 2019 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adolfont/1ced530bcdf1aba1e189207986b1fab5 to your computer and use it in GitHub Desktop.
Save adolfont/1ced530bcdf1aba1e189207986b1fab5 to your computer and use it in GitHub Desktop.
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