Creating multiple functions (in a different or global scope) using a one macro

julia> macro example(fprefix)
           exs = [quote $(Symbol(fprefix, :_, i))() = $i end for i = 1:3]
           @show exs
           esc(Expr(:block, exs...))
       end
@example (macro with 1 method)

julia> @example f
exs = Expr[quote
    #= REPL[29]:2 =#
    f_1() = begin
            #= REPL[29]:2 =#
            1
        end
end, quote
    #= REPL[29]:2 =#
    f_2() = begin
            #= REPL[29]:2 =#
            2
        end
end, quote
    #= REPL[29]:2 =#
    f_3() = begin
            #= REPL[29]:2 =#
            3
        end
end]
f_3 (generic function with 1 method)

julia> f_2()
2