RosettaCodeData/Task/Higher-order-functions/Julia/higher-order-functions-1.julia
Ingy döt Net 6f050a029e update
2013-06-05 21:47:54 +00:00

5 lines
114 B
Text

function foo(x)
str = x("world")
println("hello $(str)!")
end
foo(y -> "blue $y") # prints "hello blue world"