Concise way to initialize field in terms of another field

You could define a single-argument constructor method for this:

julia> Example(a) = Example(a, 9+a)
Example

julia> Example(3)
Example(3, 12)