summaryrefslogtreecommitdiff
path: root/src/code/1/binaries
diff options
context:
space:
mode:
Diffstat (limited to 'src/code/1/binaries')
-rw-r--r--src/code/1/binaries13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/code/1/binaries b/src/code/1/binaries
new file mode 100644
index 0000000..1ac8fbf
--- /dev/null
+++ b/src/code/1/binaries
@@ -0,0 +1,13 @@
+iex> <<1, 2, 3>>
+<<1, 2, 3>>
+iex> <<255, 255, 256>>
+<<255, 255, 0>>
+iex> <<256 :: size(16)>>
+<<1, 0>>
+iex> <<"Hello, 世界" :: utf8>>
+"Hello, 世界"
+
+iex> <<1, 2>> <> <<3>>
+<<1, 2, 3>>
+iex> "Hello, " <> "World"
+"Hello, World"