We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
Following JuliaLang/julia#24741 (comment) maybe AbstractTrees could provide an example to get a tree of type hierarchy.
AbstractTrees
Kind regards
The text was updated successfully, but these errors were encountered:
A bit late to the party here, but Term now provides functionality very much like the one discussed above, see [here]: https://fedeclaudi.github.io/Term.jl/stable/ren/tree/#TypeTree
Sorry, something went wrong.
As suggested by @karlwessel in JuliaLang/julia#24741 (comment)
julia> AbstractTrees.children(x::Type) = subtypes(x) julia> print_tree(Number) Number ├─ Complex └─ Real ├─ AbstractFloat │ ├─ BigFloat │ ├─ Float16 │ ├─ Float32 │ └─ Float64 ├─ AbstractIrrational │ └─ Irrational ├─ Integer │ ├─ Bool │ ├─ Signed │ │ ├─ BigInt │ │ ├─ Int128 │ │ ├─ Int16 │ │ ├─ Int32 │ │ ├─ Int64 │ │ └─ Int8 │ └─ Unsigned │ ├─ UInt128 │ ├─ UInt16 │ ├─ UInt32 │ ├─ UInt64 │ └─ UInt8 └─ Rational
Successfully merging a pull request may close this issue.
Hello,
Following JuliaLang/julia#24741 (comment)
maybe
AbstractTrees
could provide an example to get a tree of type hierarchy.Kind regards
The text was updated successfully, but these errors were encountered: