I have a use case that may require generating functions on the fly for lists of atoms. Considering a list such as
[:item_a, :item_b, :item_c]
Would it be possible to generate a macro that constructs functions as the ones below using a macro?
def fn_item_a(params) do
...
end
def fn_item_b(params) do
...
end
def fn_item_c(params) do
...
end