julia> Integer <: Real
true
If we don't know the answer (Real
) how to find the supertype of Integer
?
Also, how to find all the subtypes of Integer
?
julia> supertype(Integer)
Real
julia> subtypes(Integer)
3-element Array{Any,1}:
Bool
Signed
Unsigned
see also https://github.com/JuliaLang/julia/issues/24741
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With