Last active
August 29, 2015 14:04
-
-
Save patrickgombert/7cb2290c2cab657747f7 to your computer and use it in GitHub Desktop.
concat binaries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iex(1)> a = << 0 :: size(10) >> | |
<<0, 0::size(2)>> | |
iex(2)> b = << 0 :: size(10) >> | |
<<0, 0::size(2)>> | |
iex(3)> << a :: size(10), b :: size(10) >> | |
** (ArgumentError) argument error | |
iex(3)> << a :: binary, b :: binary >> | |
** (ArgumentError) argument error | |
iex(3)> a <> b | |
** (ArgumentError) argument error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment