Skip to content

Instantly share code, notes, and snippets.

@niiyz
Created May 12, 2015 11:04
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 niiyz/9a0d541249656e257674 to your computer and use it in GitHub Desktop.
Save niiyz/9a0d541249656e257674 to your computer and use it in GitHub Desktop.
Erlang アトム 2015.05.12
30> apple.
apple
31> hello_world.
hello_world
32> Atom = atom.
atom
33> Atom = apple.
** exception error: no match of right hand side value apple
34> Atom = atom.
atom
35> Apple.
* 1: variable 'Apple' is unbound
36> 'Apple'.
'Apple'
37> is_atom(apple).
true
38> is_atom(yoshida).
true
39> is_atom("hello").
false
40> is_atom("yoshida").
false
41> is_boolean(false).
true
42> is_boolean(apple).
false
43> atom_to_list(hello).
"hello"
44> list_to_atom("apple").
apple
45>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment