Friday 1 April 2016

Julia: Get parent type of data type


super(T) return the super type of data type T.

julia> super(Int64)
Signed

julia> super(Signed)
Integer

julia> super(Integer)
Real

julia> super(Real)
Number

julia> super(Number)
Any

julia> super(Any)
Any

Note
Any is the super type for all data types in Julia.



Previous                                                 Next                                                 Home

No comments:

Post a Comment