Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.
/ returnatom Public archive

Erlang library for creating dynamic modules that their functions always yield atom type.

License

Notifications You must be signed in to change notification settings

pouriya/returnatom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReturnAtom

Erlang library for creating dynamic modules that their functions return atom.

Example

~/returnatom $ make shell
===> Verifying dependencies...
===> Compiling returnatom
(returnatom@localhost)1> returnatom:start().
ok
(returnatom@localhost)2> returnatom:start(foo).
ok
(returnatom@localhost)3> returnatom:add(foo, bar, baz).
ok
(returnatom@localhost)4> foo:bar().
baz
(returnatom@localhost)5> returnatom:replace(foo, bar, qux).
ok
(returnatom@localhost)6> foo:bar().                        
qux
(returnatom@localhost)7> returnatom:delete(foo, bar).      
ok
(returnatom@localhost)8> returnatom:modules().       
[foo]
(returnatom@localhost)9> returnatom:stop(foo).
ok
(returnatom@localhost)10> returnatom:modules().
[]

About

Erlang library for creating dynamic modules that their functions always yield atom type.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published