On Saturday, March 14, 2015 at 9:15:32 AM UTC-4, Tamas Papp wrote: > > I don't know if the last step is accessible to the user (for > metaprogramming), would be interesting to learn about that. >
Here you go:
julia> expand(parse("x[:] += 1"))
:(begin
GenSym(0) = colon(1,(top(endof))(x))
GenSym(1) = getindex(x,GenSym(0)) + 1
setindex!(x,GenSym(1),GenSym(0))
return GenSym(1)
end)
