[erlang-questions] how to make the comprehension work
Roelof Wobben
r.wobben@REDACTED
Mon Aug 17 19:14:54 CEST 2015
Hello,
I try to extract the modules names from the output of code:loaded_all.
So I tried this :
-module(module).
-export([most_used_function_name/0]).
most_used_function_name() ->
process_module_data(code:all_loaded()).
process_module_data(Loaded_modules) ->
Module_list = get_modules_name(Loaded_modules).
get_modules_name(Loaded_Modules_list) ->
[ModuleList || [{ModuleList, _}] <- Loaded_Modules_List ].
but now I see a message that ModuleList is unbound.
What did I do wrong here ?
Roelof
---
Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
https://www.avast.com/antivirus
More information about the erlang-questions
mailing list