January 2020
Intermediate to advanced
532 pages
13h 31m
English
Julia provides some convenient functions to navigate the type hierarchy. To find the subtypes of an existing type, we can use the subtypes function:

Similarly, to find the supertype of an existing type, we can use the supertype function.

Sometimes, it's convenient to see the complete hierarchy in a tree format. Julia comes with no standard function that we can use to achieve this, but we can easily create one ourselves using a recursion technique, as follows:
# Display the entire type hierarchy starting from the ...
Read now
Unlock full access