Skip to content

Instantly share code, notes, and snippets.

@jordancluts
Created February 15, 2019 14:16
Show Gist options
  • Save jordancluts/27642196a6bc7f2c7413f7f5c06d042e to your computer and use it in GitHub Desktop.
Save jordancluts/27642196a6bc7f2c7413f7f5c06d042e to your computer and use it in GitHub Desktop.
Julia Type Tree
function subtypetree(t, level=1, indent=4)
level == 1 && println(t)
for s in subtypes(t)
println(join(fill(" ", level * indent)) * string(s))
subtypetree(s, level+1, indent)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment