Basetype
This section of the manual describes the Basetype
module.
ReachabilityBase.Basetype
— ModuleBasetype
This module provides the functionality to obtain the base type of a type or object.
ReachabilityBase.Basetype.basetype
— Functionbasetype(T::Type)
Return the base type of the given type (i.e., without type parameters).
Input
T
– type
Output
The base type of T
.
julia> using ReachabilityBase.Basetype
julia> basetype(Float64)
Float64
julia> basetype(Rational{Int})
Rational
basetype(x)
Return the base type of the given object (i.e., without type parameters).
Input
x
– object
Output
The base type of x
.
Examples
julia> using ReachabilityBase.Basetype
julia> basetype(1.0)
Float64
julia> basetype(1//1)
Rational