Basetype

This section of the manual describes the Basetype module.

ReachabilityBase.Basetype.basetypeFunction
basetype(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
source
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
source