Created
December 7, 2020 23:09
-
-
Save jsundram/2f6be23e78a3fce99e53acaef9405343 to your computer and use it in GitHub Desktop.
looking at julia's type hierarchy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function super(a) | |
local t | |
try | |
t = supertype(a) | |
catch | |
t = typeof(a) | |
end | |
if t == a | |
return | |
else | |
println(t) | |
return super(t) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment