RosettaCodeData/Task/Higher-order-functions/Nanoquery/higher-order-functions.nanoquery

11 lines
131 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
def first(function)
return function()
end
def second()
return "second"
end
result = first(second)
println result