Syntax for generator

I understand that in 0.5, you can use generators, and that the syntax is

functionname(generator)

eg

sum(x^2 for x in 1:9 if isodd(x))

However, is there syntax for just the generator, without applying it? Ie I am looking for something equivalent to

identity(x^2 for x in 1:9 if isodd(x))

use paranthesis

julia> (x^2 for x in 1:9 if isodd(x))
Base.Generator{Filter{Base.#isodd,UnitRange{Int64}},##1#2}(#1,Filter{Base.#isodd,UnitRange{Int64}}(isodd,1:9))
6 Likes