using Lazy
@> begin
1:2
sum
end
the above to be the same as calling
sum(1:2)
Now I want to use it together with FileIO.jl
using FileIO, DataFrame, Lazy, CSV
a = DataFrame(a = 1)
CSV.write("file.csv", a)
data = @> begin
"file.csv"
load
end
but this returns FileIO.load
instead of load("file.csv")
.
I can fix it by doing
data = @> "file.csv" begin
load
end
But why doesn’t the first way work?