Skip to content

Instantly share code, notes, and snippets.

@takscape
Created September 11, 2012 09:24
Show Gist options
  • Save takscape/3697174 to your computer and use it in GitHub Desktop.
Save takscape/3697174 to your computer and use it in GitHub Desktop.
.erlang example
begin
BaseDir = "C:/opt/erllibs",
lists:foreach(
fun(Dir) ->
Ebin = filename:join([BaseDir, Dir, "ebin"]),
case filelib:is_dir(Ebin) of
true -> code:add_patha(Ebin);
false -> ok
end
end,
case file:list_dir(BaseDir) of
{ok, SubDirs} -> SubDirs;
_ -> []
end
)
end.
@tuafeeqahmed
Copy link

Can you write "money denomination" code in erlang Language ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment