Task

Pass a function     as an argument     to another function.



Related task

   First-class functions


def first(function)
        return function()
end
 
def second()
        return "second"
end
 
result = first(second)
println result