Created
May 12, 2015 11:04
-
-
Save niiyz/9a0d541249656e257674 to your computer and use it in GitHub Desktop.
Erlang アトム 2015.05.12
This file contains 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
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