diff options
author | kballou <kballou@devnulllabs.io> | 2016-03-04 15:56:47 -0700 |
---|---|---|
committer | kballou <kballou@devnulllabs.io> | 2016-03-07 15:31:22 -0700 |
commit | 3c20dbbdf4ca14fab918576a1479c7aa90196e6e (patch) | |
tree | 83be80fb18b20c3440d3e87f8739c6d1780b4223 /src/code/1/atoms | |
parent | bc484b7444ff68494b2da7b16ceefb0b1e4a396c (diff) | |
download | func-w-elixir-3c20dbbdf4ca14fab918576a1479c7aa90196e6e.tar.gz func-w-elixir-3c20dbbdf4ca14fab918576a1479c7aa90196e6e.tar.xz |
Add code examples to presentation
Diffstat (limited to 'src/code/1/atoms')
-rw-r--r-- | src/code/1/atoms | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/code/1/atoms b/src/code/1/atoms new file mode 100644 index 0000000..fe6b2b8 --- /dev/null +++ b/src/code/1/atoms @@ -0,0 +1,17 @@ +iex> :atom +:atom +iex> :ok +:ok +iex> :error +:error +iex> Foobar +Foobar +iex> :this_is_a_long_atom_dont_do_this +:this_is_a_long_atom_dont_do_this + +iex> Atom.to_string :foo +"foo" +iex> String.to_atom "foo" +:foo +iex> String.to_atom "foo with a space and bar" +:"foo with a space and bar" |