Skip to content

Instantly share code, notes, and snippets.

@mprymek
Created March 16, 2015 06:12
Show Gist options
  • Save mprymek/5896740ec8157d4d23e9 to your computer and use it in GitHub Desktop.
Save mprymek/5896740ec8157d4d23e9 to your computer and use it in GitHub Desktop.
iex(5)> a = <<104, 101, 322, 322, 111>>
"heBBo"
iex(6)> b = <<104, 101, 66, 66, 111>>
"heBBo"
iex(7)> a |> inspect(binaries: :as_binaries)
"<<104, 101, 66, 66, 111>>"
iex(8)> b |> inspect(binaries: :as_binaries)
"<<104, 101, 66, 66, 111>>"
iex(9)> a = b
"heBBo"
iex(10)> <<104, 101, 322, 322, 111>> = <<104, 101, 66, 66, 111>>
** (MatchError) no match of right hand side value: "heBBo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment