Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Singleton/Erlang/singleton-2.erl
Normal file
14
Task/Singleton/Erlang/singleton-2.erl
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
1> singleton:get().
|
||||
not_set
|
||||
2> singleton:set(apple).
|
||||
ok
|
||||
3> singleton:get().
|
||||
{ok,apple}
|
||||
4> singleton:set("Pear").
|
||||
ok
|
||||
5> singleton:get().
|
||||
{ok,"Pear"}
|
||||
6> singleton:set(42).
|
||||
ok
|
||||
7> singleton:get().
|
||||
{ok,42}
|
||||
Loading…
Add table
Add a link
Reference in a new issue