2 ms·
If it is to be reused by other modules, or if it is complex (and likely itself needs to be split up into smaller functions) Think of: items = ["file_a", "f
by tsukaisute 9y ago
If it is to be reused by other modules, or if it is complex (and likely itself needs to be split up into smaller functions)
Think of:
items = ["file_a", "file_b", "file_c"]
Enum.map items, &HelpfulDownloaderModule.download/1
download/1 is probably pretty complex and/or can be of use in other pieces of code.