I can’t tell if you’re thinking about user evaluating functions into a module, or you’re the developer and want to define multiple functions, because it clearly works if you just call it in the module:
julia> module M
macro example(fprefix)
exs = [quote $(Symbol(fprefix, :_, i))() = $i end for i = 1:3]
esc(Expr(:block, exs...))
end
function integrate()
println(f_1())
end
@example f
end
Main.M
julia> M.integrate()
1