I would like to create a nested tuple type, that can hold itself, or the particular type it contains.
So I thought:
typealias NestedTuple{T} Tuple{Union(T,NestedTuple{T}),Union(T,NestedTuple{T})}
However this comes up with an error
LoadError: UndefVarError: NestedTuple not defined
How is this kind of typealias
normally done?
(I am in julia 0.4)
Dose this work for what you are doing?
Note: I am only able to try this in 036, not 04
An exmple of use: